下拉框select样式改写具体实现

建站知识 2021-07-03 08:15www.168986.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>

Copyright © 2016-2025 www.168986.cn 狼蚁网络 版权所有 Power by