如何在互联网 Explorer中自动调整对话框jQuery UI?在Internet Explorer中自动调整jQuery UI对话框的大小
此代码在Firefox中正常,但不在Internet Explorer中。
$('#dialog2').dialog({
autoResize: true,
show: "clip",
hide: "clip",
height: 'auto',
width: 'auto',
autoOpen: false,
modal: true,
position: 'center',
draggable: true,
open: function (type, data) {
$(this).parent().appendTo("form");
},
buttons: { "close": function() { $(this).dialog("close"); document.getElementById("<%=btnnew.ClientID%>").click(); } }
});
我的HTML元素是一个DIV。
你使用的是什么版本的jQuery和jQuery UI? – 2010-11-29 13:18:05
jquery ui 1.8.5 JQuery 1.4.2 – Shahin 2010-11-29 16:44:03