87,989
社区成员
发帖
与我相关
我的任务
分享
$("#custdiv").dialog({
autoOpen: false, //如果设置为true,则默认页面加载完毕后,就自动弹出对话框;相反则处理hidden状态。
bgiframe: true, //解决ie6中遮罩层盖不住select的问题
width: 755,
height:450,
modal: true, //这个就是遮罩效果
buttons: {
"Close": function () {
$(this).dialog("close");
}
}
});
$("#addcust").click(function () {//点击弹出
$("#custdiv").dialog('open');
});
<div id="custdiv" title="客户列表">
<iframe width="755" height="450" frameborder=0 scrolling="yes" src="customers.aspx">
</iframe>
</div>
$(window.parent.document).find("input[id=custdiv]").dialog('close');
$("#custdiv").dialog('close');