模拟 美化 select_脚本之家
select{
height:20px;
width:150px;
}
.divSlt{
position:absolute;
font-size:12px;
}
.divSlt span{
display:block;
width:100%;
border:1px solid #999999;
background:url(down.gif) no-repeat right center;
text-indent:6px;
cursor:pointer;
}
.divSlt ul{
display:block;
background-color:#FFFFFF;
width:100%;
border:1px solid #999999;
border-top:0px;
margin:0px;
padding:0px;
list-style:none;
}
.divSlt ul li{
text-indent:5px;
height:20px;
line-height:20px;
cursor:pointer;
}
选项一
选项二
选项三
选项四
选项五
选项六
选项七
选项一
选项二
选项三
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
推荐阅读
告诉大家什么是JSON
它基于JavaScript Programming Language, Standard ECMA-262 3rd Edition - December 1999的一个子集。 JSON采用完全独立于语言的文本格式,但是也使用了类似于C语言家族的习惯(包括C, C++, C#, Java, JavaScript>>>详细阅读
本文标题:用javascript和css模拟select的脚本
地址:http://www.17bianji.com/kaifa2/JS/29652.html
1/2 1