【发布时间】:2010-12-21 17:08:37
【问题描述】:
这是我当前的代码:
$("#DialogScroll").dialog({
bgiframe: true,
autoOpen: false,
maxHeight: 600,
width: 550,
modal: true,
resizable: false,
open: function (type, data) {
$(this).parent().appendTo("form");
},
close: function () { }
});
maxHeight 在 Firefox、Chrome 等中效果很好,正如预期的那样,但 IE 7 显然存在问题。有谁知道如何让 UI 对话框在 IE 中使用 maxHeight?
<div id="DialogScroll" class="dialog" style="display:none; ">
<table>
<thead>
<tr>
<th>
State Code
</th>
<th>
State Name
</th>
</tr>
</thead>
<tbody>
<asp:Literal ID="litStates" runat="server" />
</tbody>
</table>
</div>
【问题讨论】:
-
到底是什么问题? (我假设它可能比它的 maxHeight 大,但我想确定一下。)你也可以粘贴#DialogScroll 以便我们可以在这里看到它吗?谢谢。
-
添加了对话框的内容。发生的事情是 maxHeight 设置为 600 并且空白全部消失了,这很好,但我实际上可以设置表(它是 jQuery 数据表插件的一部分)以显示更多记录。假设是 50。这超出了 IE 中的 maxHeight。
标签: javascript jquery jquery-ui jquery-dialog css