這裏是我的代碼:如何填寫父母身高?
.solid_color{
background-color: gray;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<div>
<div class="solid_color col-xs-3"></div>
<div class="col-xs-9">
" <span>A sentence from someone A sentence from someone A sentence from someone A sentence from someone A sentence from someone A sentence from someone A sentence from someone A sentence from someone A sentence from someone A sentence from someone</span> "
<i>(Quote from someone)</i>
</div>
</div>
目前div.solid_color
是一條線。它的高度應與鄰居元素的高度相同。我怎樣才能做到這一點?
的[製作一個div填補餘下的屏幕空間的高度(可能的複製https://stackoverflow.com/questions/90178/make-a-div-fill-the-height剩餘的屏幕空間)以及通過搜索搜索到的許多相同的答案。 – Rob
@RacilHilan我無法爲父母定義任何特定高度,因爲該句子的長度是動態的。 – stack
可能的重複[如何保持兩個div並排相同的高度?](https://stackoverflow.com/questions/2997767/how-do-i-keep-two-divs-that-are- –