WordPress页面中的iframe全高问题(无滚动条)
我正在尝试获取此代码
<iframe src="http://www.play-asia.com/paOS-38-19-0,,none,0,0,0,0,trans,000000,left,0,0-49-en-76-5-70-dhf7-6-2-78-2i-90-f8z9-33-iframe_banner-40-6-44-100%2525.html" style="border-style: none; border-width: 0px; border-color: #FFFFFF; padding: 0px; margin: 0px; scrolling: vertical; frameborder: 0;" scrolling="vertical" frameborder="0" width="100%25" height="1428"></iframe>
来填充页面(高度方面)并且没有滚动条我尝试并尝试使用CSS但没有任何运气
任何人有任何想法如何/如果我这样做? 谢谢
Am trying to get this code
<iframe src="http://www.play-asia.com/paOS-38-19-0,,none,0,0,0,0,trans,000000,left,0,0-49-en-76-5-70-dhf7-6-2-78-2i-90-f8z9-33-iframe_banner-40-6-44-100%2525.html" style="border-style: none; border-width: 0px; border-color: #FFFFFF; padding: 0px; margin: 0px; scrolling: vertical; frameborder: 0;" scrolling="vertical" frameborder="0" width="100%25" height="1428"></iframe>
To fill the page (height wise) and also without the scroll bar ive tryed and tryed to use css without any luck
Anyone have any ideas how/if I do do this?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使 iframe 绝对定位:
您谈论的是按高度填充页面,但您有一个设定的高度。您还谈论“没有滚动条”,但您已打开滚动。上面的代码将帮助您的 iframe 跳出它的容器来填充页面,只要它的容器不是
position:relative
Make the iframe absolutely positioned:
You talk about filling the page height-wise but you have a set height. You also talk 'without scrollbars' but you have scrolling turned on. The code above will help your iframe jump out of it's container to fill the page as long as its container is not
position: relative
尝试
style="overflow: none;"
作为 iframe 属性Try
style="overflow: none;"
as an iframe atribute