缩小整个网站 [进入 iFrame]
我想知道是否有一种(基于网络的)方法来缩小整个网站并将其放入 iframe 中。 [包括图像等],以便用户可以获得网站的全功能预览(当然仅适用于没有框架破坏方法的网站)。
I was wondering if there is a (webbased) way to scale down a whole website and put it into an iframe. [including images etc], so that a user would get a fully functional preview of the website (only for websites without frame busting methods of course).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
不,没有。
Microsoft 专有的
zoom
属性可能可以做到这一点,但在大多数浏览器中都不能,并且在您无法编辑 CSS 的页面中也不能。如果您想提供预览,请提供缩略图(无论如何,在大多数情况下用户下载的速度可能会快得多)
No, there isn't.
The Microsoft propriety
zoom
property could probably do it, but not in most browsers, and not in pages you can't edit the CSS for.If you want to provide a preview, provide a thumbnail graphic (which would probably be a lot faster for the user to download in most cases anyway)
您是否尝试过使用 css 执行以下操作?
Have you tried the following with css?
这取决于 javascript 或 css,尽管它实际上取决于浏览器及其对某些命令的行为。
Thats up to javascript or css although it really depends about the browser and its behavior to certain commands.
您可以使用 javascript 指定 iframe src。
document.getElementById('myiframe').src = '我的网址';
You can use javascript to specify the iframe src.
document.getElementById('myiframe').src = 'my url';