我正在使用jQuery UI單選按鈕,並找不到如何將它們全部設置爲固定寬度。使用jQueryUI設置單選按鈕的寬度
我正在使用的代碼是:
<script type="text/javascript">
$(document).ready(function() {
$("#radio").buttonset();
});
</script>
<div id="radio">
<input type="radio" id="radio1" name="radio" /><label for="radio1">A</label>
<input type="radio" id="radio2" name="radio" checked="checked" /><label for="radio2">Choice 2 - long long</label>
<input type="radio" id="radio3" name="radio" /><label for="radio3">Choice 3</label>
</div>
我使用jQuery的第一次,並沒有什麼CSS或JavaScript的經驗。我嘗試過各種奇怪的組合,嘗試爲按鈕指定一個固定寬度,而不會失去jQuery UI風格,但沒有運氣。
任何幫助,將不勝感激。
完美,它的工作原理完全一樣,我想。謝謝。 – 2010-08-16 22:21:39