我遇到的问题是让对话框可拖动和调整大小。所有关于此的文档和问题都使其听起来很直白,但我无法使其发挥作用。任何想法我可能做错了什么?jQuery UI对话框不可拖动或可调整大小
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
<html>
<head>
<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
<SCRIPT TYPE="text/javascript" SRC="js/jquery-ui-1.8.10.custom.min.js"></SCRIPT>
<SCRIPT TYPE="text/javascript">
$(document).ready(function(){
$('#dialog-form').dialog({
// autoOpen: false,
height: 400,
width: 350,
modal: true,
draggable: true,
resizable: true,
buttons: {
Cancel: function() {
$(this).dialog("close");
}
},
close: function() {
alert('here');
}
});
});
</SCRIPT>
<link type="text/css" href="css/smoothness/jquery-ui-1.8.10.custom.css" rel="stylesheet" />
<style>
#dialog-form label {float:left; width:100px;}
</style>
</head>
<body>
<div id="dialog-form" title="Create new product">
<form>
<fieldset>
<label for="pt">Product Type</label>
<input type="text" name="pt" id="pt" class="text ui-widget-content ui-corner-all" />
<br>
<label for="prod">Producer</label>
<input type="text" name="prod" id="prod" class="text ui-widget-content ui-corner-all" />
</fieldset>
</form>
</div>
</body>
</html>
对IE6说不! http://ie6countdown.com/:o) – balexandre 2011-03-08 19:46:11
我希望有一个简单的方法可以让人们摆脱IE6 – Avitus 2011-03-08 19:47:20
我在搜索相关信息时偶然发现了这个消息,并认为我会@Avitus的评论......它这很容易。我的公司不支持IE。没有Chrome浏览器,没有Safari浏览器......除了Firefox以外没有任何东西期。如果支持需要针对公司或非公司网站,则无关紧要。如果你不改变自己,就不能改变世界。员工可以自由选择他们的浏览器,但他们知道他们是否有困难,他们不会为非Firefox问题获得帮助。我们构建的网站仅通过Firefox进行测试。而来自互联网到我们网站的流量会得到一个关于此的消息。 – user1801810 2014-06-12 16:28:59