[英]IFrame adjust according to “height” “width” of the browser
I want Iframe to adjust according to the screen resolution. 我希望iframe根据屏幕分辨率进行调整。 Some auto functionality where i don't need to define height and width manually.
我不需要手动定义高度和宽度的一些自动功能。
Here is a simple example: 这是一个简单的示例:
http://plnkr.co/edit/AgRph1fVM1QILkolVEIE?p=preview http://plnkr.co/edit/AgRph1fVM1QILkolVEIE?p=preview
<iframe src="http://www.w3schools.com" height="200" width="200">
Please Advice.. 请指教..
您可以添加这样的内联样式。
<iframe src="http://www.w3schools.com" style="position:absolute; width:100%; height: 100%">
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.