未通过clearfix解决父项高度

时间:2016-06-01 15:32:49

标签: html css css3 height clearfix

无法弄清楚为什么我的div.partner-item不会占用它的子元素的高度。看看我的小提琴https://jsfiddle.net/edjcqkke/2/。如果你检查'partner-item'div,你可以看到它没有子元素的高度。我已经清理了我的花车,但仍然无法让父高确认其孩子的身高。我的html结构:

<div id="partner-container" class="standard small container">
  <div class="partner-item">
    <div class="flipper">
      <div class="front">
        <img class="logo" src="http://fillmurray.com/300/150">
        <h2>Test Page</h2>
        <p>www.googlre.vi9m</p>
      </div>
    </div>
  </div>
  <div class="partner-item">
    <div class="flipper">
      <div class="front">
        <img class="logo" src="http://fillmurray.com/300/150">
        <h2>new-item</h2>
        <p>http://www.google.com</p>
      </div>
    </div>
  </div>
  <div class="partner-item">
    <div class="flipper">
      <div class="front">
        <img class="logo" src="http://fillmurray.com/300/150"><h2>partner-item</h2><p>undefined</p>  
      </div>
    </div>
  </div>
</div>
<div class="clearfix"></div>

1 个答案:

答案 0 :(得分:1)

您的<div class="flipper">拥有./fullinstall财产。所以它不会占用父元素的任何空间。这就是Installation step failed - exiting. Check for error messages in the install log (install.log). If you require assistance in resolving the issue, please include install.log in your communications with Nagios Enterprises technical support. The step that failed was: 'prereqs' 无法识别孩子身高的原因。