你可以用這個jQuery的風格你的選擇框:
http://www.adamcoulombe.info/lab/jquery/select-box/
這是很容易實現,並在不支持它的瀏覽器(IE6)很好地降解(默認選擇)。
jQuery插件(包含在下載鏈接):
customSelect.jquery.js
的Javascript:
$(document).ready(function(){
$('select').customStyle();
});
CSS:
.customStyleSelectBox {
/* Styles For Your Select Box */
}
.customStyleSelectBox.changed {
/* You can use this if you want a different style after user has made a selection */
}
/* on the next line we add a down arrow on the right to indicate that it is a select box */
.customStyleSelectBoxInner {
background:url(canvas-list-nav-item-arrow-.gif) no-repeat center right;
}
圖像預覽:
來源
2011-04-13 05:09:31
Dan
好,像大多數其他表單元素,''