-2
當我將我的元素設置爲顯示時:CSS中的table-caption:它將它放在標籤旁邊。有沒有辦法將它保持在底部?CSS顯示:表格標題
input, #number{
display: table-cell;
}
#examples{
background: red;
width: 100%;
position: absolute;
left: 0;
}
<link href="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet"/>
<div class="input-group col-md-6">
<label class="input-group-addon" id="number">Number</label>
<input type="text" class="form-control" required></input>
<ul id="examples">
<li>111 111</li>
<li> 11 11 11</li>
</ul>
</div>
<div class="input-group col-md-6">
<label class="input-group-addon" id="number">Postal code</label>
<input type="text" class="form-control" required></input>
</div>
爲什麼你需要'表caption'到底是什麼? –
爲什麼在關閉「
因爲這正是它應該做的。 – FluffyKitten