你可以用这个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
好,像大多数其他表单元素,''