我想点击Button按钮然后弹出一个可关闭的层,层中显示另一个网页中的内容

解决方案 »

  1.   

    jquery lightbox插件。
    jquery ui 的 dialogbox 
      

  2.   

    jquery中jwindow
    DIV
    http://topic.csdn.net/u/20090811/23/a0812cf7-4989-408b-b73c-ad6faf458369.html
      

  3.   

    你可以利用jquery dialog
    这个功能可以弹出层
    具体看一个简单的实例
    http://www.designcss.org/jquery-plugin/dialog/dialog.html###
    官方网站插件
    http://jqueryui.com/demos/dialog/
      

  4.   

    可以自已用js写,也可以用jquery框架里dialog
    ajaxtoolkit里也有类似控件
      

  5.   

    JS:<div id="a" style="position:absolute;top:100px;left:100px;display:none">
    <iframe src="../default.html"></iframe>
    </div><input type="button" onClick="getElementById('a').style.display='block';">
      

  6.   

    遮盖效果的只能是弹出一个浮动的iframe,里面src指定页面,在iframe下面再覆盖一个全页面的div,遮盖所有的,可以是透明的.这样就可以
      

  7.   

    function showModel()
    {
        divModalDialog.style.display = "block";
        resizeModal();
        window.onresize = resizeModal;
    }
    function closeModel()
    {
        divModal.style.width = "0px";
        divModal.style.height = "0px";
        divModalDialog.style.display = "none";
        window.onresize = null;
    }
    function resizeModal()
    {
        divModal.style.width = document.body.scrollWidth;
        divModal.style.height = document.body.scrollHeight;
        divModalDialog.style.left = (document.body.scrollWidth / 2) - 160;
        divModalDialog.style.top = 60;
    }