以像素为单位设置iframe高度

时间:2015-03-16 16:36:24

标签: css iframe height

我想在页面上显示高度为72像素高的顶部栏,然后加载一个填充整页的iframe(减去顶部栏的高度)。

在我开始考虑我的topbar之前...不知怎的,我的iframe忽略了我设置的任何高度属性:

width='100%' height='1200' style='overflow:hidden;height:100%;width:100%' 

or 

width='100%' height='100%' style='overflow:hidden;height:100%;width:100%' 

我一直在阅读这篇文章:Full-screen iframe with a height of 100%

但没有运气。在此处观看:http://www.trouwlocaties.com/extpage.aspx?id=315&t=1

1 个答案:

答案 0 :(得分:1)

首先从height:100%删除style,现在iframe应该是1200px的高度。

相关问题