我有這個div類叫做'answer_box',每個頁面他們將會有4個不同的答案框,每次都有不同的文字。我想讓每個答案在彼此之間有相同的距離,不管箱子裏有很多文字還是很少,以保持設計的一致性。使每個div之間有相同的距離使用HTML?
我的html代碼:
<div id="app">
<div class="answer_box">
<div class="answer_checkbox"></div>
<span class="answers"> little bit of text</span>
</div>
<div class="answer_box">
<div class="answer_checkbox"></div>
<span class="answers">you have priotrtoities over the people on the opposite direction</span>
</div>
<div class="answer_box">
<div class="answer_checkbox"></div>
<span class="answers">you have priotrtoities over the people on the opposite direction</span>
</div>
</div>
的jsfiddle是在這裏:http://jsfiddle.net/24E6W/1/