我正在寻找一种方法使jQuery UI对话框高度根据内容动态变化。jQuery对话动态高度
这里是我的代码:
$("#dialog-modal_"+productID).html("<iframe src='index.php?act=showProduct&id="+productID+"' width='100%' height='100%' frameborder='0' scrolling='no'></iframe>");
$("#dialog-modal_"+productID).dialog(
{
width: 810,
height: 590,
resizable: false,
modal: true,
open: function(event, ui)
{
}
});
反正有没有这样做呢?
其写成“auto”是默认值。甚至认为,如果我删除身高:....绝对,它仍然没有工作 – user1936192
谢谢,它的工作! – informatik01