在模态框中打开网页? [英] Open Web page in modal box?

查看:124
本文介绍了在模态框中打开网页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能吗?不仅仅是html,还有一个不同的样式表等等,同时屏蔽了其余的屏幕?

感谢您的任何帮助。



Ann

解决方案

查看 Colorbox 演示 )。它是 jQuery 的非常好的插件。



使用iFrame,您可以将任何东西加载到此模式插件中。以下是演示文稿的示例代码:/ b>

标记

 < a class ='example7'href =http://google.com>外部网页(Iframe)< / a> 

JavaScript

  $(。example7)。colorbox({iframe:true,innerWidth:425,innerHeight:344}); 

因此,您可以更改 http://google.com ./ your-iFrame.html 或其他任何东西,它会加载并渲染整个页面!


Is this possible? not just html but also a different stylesheet etc while blacking out the rest of the screen?

Thanks for any help.

Ann

解决方案

Check out Colorbox (Demo). It is a very well put together plugin for jQuery.

Using iFrames you are able to load pretty much anything into this modal plugin. Here is the example code for the demo w/ the iFrame.

markup

<a class='example7' href="http://google.com">Outside Webpage (Iframe)</a>

JavaScript

$(".example7").colorbox({iframe:true, innerWidth:425, innerHeight:344});

So, you could just change http://google.com to ./your-iFrame.html or whatever and it would load and render that entire page!

这篇关于在模态框中打开网页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆