我有三個李克特量表類似於:格式HTML按鈕
<div class="btn-toolbar" role="toolbar" aria-label="...">
<div class="btn-group" role="group" aria-label="...">
<a class="btn btn-link disabled" disabled>Not Fearsome</a>
<button id="fear1" type="button" class="btn btn-default likert-1">1</button>
<button id="fear2" type="button" class="btn btn-default likert-2">2</button>
<button id="fear3" type="button" class="btn btn-default likert-3">3</button>
<button id="fear4" type="button" class="btn btn-default likert-4">4</button>
<button id="fear5" type="button" class="btn btn-default likert-5">5</button>
<a class="btn btn-link disabled" disabled>Extremely Fearsome</a>
</div>
</div>
然而希望每個尺度的第一按鈕精確下彼此被放置爲他們是均勻的。
任何簡單的解決方案?
不要建議OP使用內聯樣式,這是一個不好的做法 – dippas
@dippas - 實際上 - 我說我會建議使用CSS並添加一個類。但公平點! – gavgrif
仍OP是使用引導程序,所以沒有必要(在這種情況下)創建更多的類:) – dippas