以下是我試圖在兩個floating
div之間給小時線的小提琴。請讓我知道如何給兩個浮動div之間的響應線。兩小時之間的小時線
<div style="display:inline-block; float: left;">Calories</div>
<div style="inline-block">
<hr class="between" />
</div>
<div style="display:inline-block; float: right;">20</div>
<br/>
<div style="display:inline-block; float: left;">Calories</div>
<div style="inline-block">
<hr class="between" />
</div>
<div style="display:inline-block; float: right;">20</div>
你能做到這帶有邊框,而不是一個小時的標籤。記錄中,它會更好地使用css文件,而不是內聯樣式 –
[我怎樣才能填充左側和右側的浮動空間之間的空間,而不做正確的浮動包裝?](http://stackoverflow.com/questions/17259220/how-can-i-fill-the-space-between-a-left-and-right-float-without-making-the-right) – flyx
@GertB。我只爲小提琴做了內聯式樣式。問題是第三個div始終走向下一行,從hr行開始的頁邊距不工作 – user3027531