我正在使用jQuery主題單選按鈕;爲什麼jQuery UI單選按鈕之間出現間隙?
$(function() {
$("#chart_switch").buttonset();
});
的HTML:
<form>
<div id="chart_switch">
<input type="radio" id="pie" name="chart_type" value="pie" checked="checked" /><label for="pie">Pie</label>
<input type="radio" id="bar" name="chart_type" value="bar" /><label for="bar">Bar</label>
</div>
</form>
結果:
我不明白的是爲什麼會出現兩個選項之間的間隙。我使用的Firefox 8.0和也出現在瀏覽器(V15.0)
這是最有可能通過你對這些元素設置CSS樣式引起的。你可以發佈你的CSS。 –