也許我只是綁住,可俯瞰很簡單的東西,但似乎我內心的div沒有延伸到它們的父元素,即使我有兩個height:100%
集孩子和父母。我使用的引導3.這裏是我的代碼:內DIV沒有延伸到外部的div即使家長設置爲100%
CSS:
#testimonials {
margin-top: 30px;
height: 100%;
text-align: justify;
}
#testimonials > div {
border-right: 1px solid #e25400;
height: 100%;
}
HTML
<div id="testimonials" class="row">
<div class="col-md-4">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book
</div>
<div class="col-md-4">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book
</div>
<div class="col-md-4">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book
</div>
</div>
編輯:
http://jsfiddle.net/d5JX7/1/它是一個響應式設計,所以你需要伸展出來到1200px。我做的第一列短文本證明短邊長,我會非常想成爲對稱,其餘
你會意識到,如果你設置'#testimonials> div'到'#testimonials' 100%的高度那麼高'#testimonials'是它會增加3倍,因爲裏面有3個div? – cronoklee