【问题标题】:Hide bottom of div containing iframe via CSS通过 CSS 隐藏包含 iframe 的 div 的底部
【发布时间】:2013-04-13 15:33:17
【问题描述】:

我的 html 页面中有任何 iframe!我已将 iframe 高度设置为 100% 并且滚动 = 否。 但是框架页面底部有很多空白区域! 我需要通过样式表删除 100px 的底部,但我无法更改 iframe 高度!

我可以将 iframe 放在一个 div 中,然后通过 css 隐藏 div 的底部。

【问题讨论】:

    标签: javascript css iframe


    【解决方案1】:

    您需要将 iframe 放置在 iframe 高度为 100% 的 div 中,并通过提供固定高度(iframe 高度 -100px)来根据它调整 div 的高度。您需要使用以下 css 样式删除该 div 的滚动:

    overflow-y:hidden;
    overflow-x:hidden;
    

    【讨论】:

      猜你喜欢
      • 2021-08-16
      • 2015-05-05
      • 2022-01-24
      • 1970-01-01
      • 2021-02-14
      • 1970-01-01
      • 1970-01-01
      • 2012-08-05
      • 1970-01-01
      相关资源
      最近更新 更多