jquery ui dialog 右上角怎么没有显示关闭按钮?

jinsonliang 2012-08-02 09:26:23
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test1.aspx.cs" Inherits="Test_jQueryUi.test1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>

<link href="Scripts/jQuery%20UI/jquery-ui-1.8.22.custom.css" rel="stylesheet" type="text/css" />
<script src="Scripts/jQuery%20UI/jquery-ui-1.8.22.custom.min.js" type="text/javascript"></script>

<script type="text/javascript">
$(function () {
$("#btnDialog").click(function () {

$("#div_dialog").dialog({

autoOpen: true,
closable:true,
buttons: {
Submit: function () { },
Exist: function () { }
}

});

});

});
</script>


</head>
<body>
<form id="form1" runat="server">

<div id="left" style=" width:200px; height:100px; background-color:#009900; float:left;"> </div>
<div id="right" style=" width:400px; height:100px; background-color:#FF0000; float:left;"> </div>
<div style="float:left">
<input id="btnDialog" type="button" value="Dialog" />
</div>
<div id="div_dialog" title="System Message">
<p>This is a message!</p>
</div>

</form>
</body>
</html>
...全文
8521 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
Scripts/jQuery%20UI/ 这个是什么啊? 为什么放两个 css 呢?
  • 打赏
  • 举报
回复
我好像没发现过这个问题,明天找项目看下
大白小白 2015-01-06
  • 打赏
  • 举报
回复
你好 你这个问题解决了吗?我也遇到了类似的问题
wangjun5159 2014-06-09
  • 打赏
  • 举报
回复
我也遇到此问题了,测试了一下,是浏览器差异化导致的,在360浏览器显示(v6.3),在chrome浏览器不显示(v34)。
ls249319195 2013-10-18
  • 打赏
  • 举报
回复
有没又搞定啊,我的也是不显示,鼠标放上去才显示
yaojunyi3721 2013-07-23
  • 打赏
  • 举报
回复
我也遇到这个问题 调了很长时间了

1,978

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 其他语言讨论
社区管理员
  • 其他语言社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧