下拉框select样式改写具体实现
内容摘要
复制代码代码如下:
<style>
.select { width:168px; height:16px; background:none; border:none; }
#sleHid { display:block; width:143px; overflow:hidden; }
#sle
<style>
.select { width:168px; height:16px; background:none; border:none; }
#sleHid { display:block; width:143px; overflow:hidden; }
#sle
文章正文
复制代码
代码如下:<style>
.select { width:168px; height:16px; background:none; border:none; }
#sleHid { display:block; width:143px; overflow:hidden; }
#sleBG { width:168px; height:16px; border: 1px solid #A3938C; background:url("icon3.jpg") #fff no-repeat 151px 0px; display:block;}
</style>
<div>
<form>
<span id="sleBG">
<span id="sleHid">
<select name="type" class="select">
<option selected="selected">所有分类</option>
<option value="1">图书</option>
<option value="2">音像</option>
</select>
</span>
</span>
</form>
</div>
代码注释