0
我使用jQuery 1.4.4与jQueryUI 1.8.7来显示模式dialog
框。我有一个问题,在IE8呈现一个滚动条,似乎忽略所有的许多不同的组合我已经试过在minHeight
和height
选项IE8忽略jQuery UI“对话框”minHeight和高度设置
在Chrome浏览器8和Firefox 3.6我的对话是这样的:。
在IE 8中,它看起来像:
的标记和脚本的样子:
<a id="create" href="#">Create New Thing</a>
<div id="dlg-create-thing" title="Create new thing?">
<form name="create-thing-form" id="dlg-create-thing-form">
<p style="text-align:left">
<span>Name: <input id="thingName" name="thingName" maxlength="12" size="30" /></span>
<br /><br />
<b>Thing options:</b><br /><br />
<input type="radio" id="option1" name="theoptions"
value="0" checked="checked" />Use this option<br />
<input type="radio" id="option1AndMem" name="theoptions"
value="1" />Use this other option
</p>
</form>
</div>
<script type="text/javascript">
$(function() {
$("#dlg-create-thing").dialog({
autoOpen: false, resizable: false, width: 500, modal: true,
minHeight: 280,
buttons: {
"Create": function() { /* do stuff */ },
"Cancel": function() { /* do other stuff */}
}
});
$("body").delegate("a[id='create']", "click",
function() {
$("#dlg-create-thing").dialog('open');
return false;
}
);
});
</script>
我该如何解决这个问题(最好是以一种很好的浏览器不可知的方式,但我会解决任何问题)?
我无法在IE8中重现 - http://jsfiddle.net/HJSy4/ – Incognito 2010-12-23 14:46:26