如何通过iframe嵌入调整大小的网站? [英] How to embed a resized website throught an iframe?

查看:87
本文介绍了如何通过iframe嵌入调整大小的网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在另一个网站中嵌入网站(通过我认为的iframe)。
我想在此分辨率下嵌入此网站:200x150像素。

I need to embed a website in another website ( throught an iframe I think ). I want to embed this website in this resolution: 200x150 pixel.

我该怎么做?

推荐答案

以防万一有人在这里徘徊。解决方案在 https://stackoverflow.com/a/11382661/605112 。同样的问题在不同的情况下将iframe设置为所需的宽度和高度并使用CSS来缩放它。可能不适用于所有浏览器。

Just in case someone wanders in here. Solution in https://stackoverflow.com/a/11382661/605112. Same problem in different context. Set iframe to desired width and height and use CSS to scale it. May not work in all browsers.

<iframe width="1024" height="768" src="http://www.bbc.com" style="-webkit-transform:scale(0.5);-moz-transform-scale(0.5);"></iframe>

这篇关于如何通过iframe嵌入调整大小的网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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