下拉框select样式改写具体实现
网站建设 2021-07-03 08:15www.dzhlxh.cn网站建设
复制代码
代码如下:<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>