【问题标题】:Set iframe height in pixels以像素为单位设置 iframe 高度
【发布时间】:2015-03-17 00:46:43
【问题描述】:

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

在我开始考虑我的顶栏之前......不知何故,我的 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

【问题讨论】:

    标签: css iframe height


    【解决方案1】:

    尝试首先从style 中删除height:100%,现在 iframe 的高度应该是 1200 像素。

    【讨论】:

      猜你喜欢
      • 2021-11-16
      • 1970-01-01
      • 2019-08-06
      • 2016-02-14
      • 1970-01-01
      • 1970-01-01
      • 2011-12-05
      • 2014-12-06
      • 1970-01-01
      相关资源
      最近更新 更多