您的位置:首页 > 其它

将网页嵌入到dialog中的方法

2014-09-08 16:07 260 查看
方法就是用iframe

<a onclick= "showPage()"  href ="请求的页面路径" target = "adPageFrame" id="showAdList"><strong> 弹出页面 </strong></a>

<div id="advertisingPage">
<iframe name="adPageFrame" scrolling=auto width="100%" height="400px" frameborder=0 ></iframe>
</div>


$("#advertisingPage").dialog({
modal:true,
autoOpen:false,
width: 1000,
height:516,
resizable:false,
position:"center",
title:"关联广告",
buttons:
{
"关闭":function(){$(this).dialog("close");}
}
});
function showPage(){
$("#advertisingPage").dialog("open");

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: