纯css隐藏select的箭头
非模拟select
CSS Code
- .sort-by > select{ width:80px; overflow:hidden; float:left; background:#FFF; border:1px solid #cccccc; margin-top:10px;}
- select{text-indent: 0.01px;text-overflow: "";-moz-appearance:none;-webkit-appearance:none;appearance:none;-o-appearance:none;background:#FFFFFF; margin-left:50px;}
XML/HTML Code
- <div class="sort-by">
- <select onchange='window.location="search.php?keywords=&"+this.value' class="SelectList" title="Sort By">
- <option value="order=product_name&switcher=asc&limit=" >
- Name </option>
- <option value="order=product_id&switcher=asc&limit=" >
- Item No. </option>
- <option value="order=updatetime&switcher=desc&limit=" selected="selected">
- Update </option>
- </select>
- </div>
原文地址:http://www.freejs.net/article_biaodan_462.html