【问题标题】:bootstrap 3 inherit parent div heightbootstrap 3继承父div高度
【发布时间】:2014-05-04 10:25:55
【问题描述】:

我正在尝试让我的孩子 div 继承父母的 div 高度

我在我的 css 中尝试过:

height: inherit;
height: 100%;
min-height: inherit;
min-height: 100%;

live example

【问题讨论】:

标签: css


【解决方案1】:

这通常是我使 DIV 扩展到全高的方式:

  html,body { height: 100%; margin: 0px; padding: 0px; }
  .full { height: 100% }

【讨论】:

    猜你喜欢
    • 2018-01-19
    • 1970-01-01
    • 2020-10-21
    • 1970-01-01
    • 2013-01-04
    • 2012-10-30
    • 1970-01-01
    • 2020-12-14
    • 2023-04-10
    相关资源
    最近更新 更多