这可能吗?不只是 html,还有不同的样式表等,同时将屏幕的其余部分涂黑?
感谢您的帮助。
安
最佳答案
查看 Colorbox (Demo)。这是一个非常适合 jQuery 的插件.
使用 iFrame,您可以将几乎所有内容加载到此模态插件中。这是带有 iFrame 的演示的示例代码。
标记
<a class='example7' href="http://google.com">Outside Webpage (Iframe)</a>
JavaScript
$(".example7").colorbox({iframe:true, innerWidth:425, innerHeight:344});
因此,您只需将 http://google.com
更改为 ./your-iFrame.html
或其他任何内容,它就会加载并呈现整个页面!
关于html - 在模式框中打开网页?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6537102/