可以在灯箱中将整个未修改的网站显示在另一个网站之上吗?
是否可以仅使用 javascript/jquery/ajax 来做到这一点? 这个想法是让另一个网站显示未修改的内容,即在像灯箱一样悬停在当前视图上的视图中显示该网站的纯 html,而不是像通常在浏览器中那样在新窗口或选项卡中显示。
任何描述、示例或基础到高级的教程和书籍都会有所帮助。
谢谢!
Is it possible to do this with just javascript/jquery/ajax?
The idea is to make another website display unmodified i.e. display the pure html of the site in a view that hovers over the current view like a lightbox as opposed to in a new window or tab as one usually has in a browser.
Any descriptions, examples, or basic to advanced tutorials and books would be helpful here.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您想要完全修改的版本,最简单的方法是使用
示例:
如果您正在寻找能够显示 iframe 或 html 的灯箱,这里有一个列表(感谢JohnP) http://planetozh.com/projects/lightbox-clones/
IF you want the completely usmodified version, the easiest way is to go with is
<iframe>
Example:
If you are looking for a lightbox capable of showing iframe or html, here is a list (Thanks to JohnP) http://planetozh.com/projects/lightbox-clones/
您可以从这里使用该插件 - > http://leandrovieira.com/projects/jquery/lightbox/
然后如果你设置它以与图像相同的方式使用 iframe,它应该可以工作。
You could use the plugin from here - > http://leandrovieira.com/projects/jquery/lightbox/
Then if you set it up to with an iframe in the same way as you would for an image, it should work.