css去掉select箭头的方法:首先创建一个HTML示例文件;然后通过select标签创建单选或多选菜单;最后通过“appearance:none;”等属性将默认的select选择框样式清除即可。

本文操作环境:windows7系统、HTML5&&CSS3版、Dell G3电脑。
css清除select的下拉箭头样式
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
select::-ms-expand { display: none; }
.info-select{
width: 88px;
height: 25px;
border: none;
outline: none;
/*将默认的select选择框样式清除*/
appearance:none;
-moz-appearance:none;
-webkit-appearance:none;
-ms-appearance:none;
/*在选择框的最右侧中间显示小箭头图片*/
background: url(img/sele.png) no-repeat scroll right center transparent;
/***将sele.png替换为你的下拉箭头**/
}
</style>
</head>
<body>
<select class="info-select">
<option selected="selected">1</option>
<option>2</option>
</select>
</body>
</html>
【推荐学习:css视频教程】
本例可以更换selet下拉箭头,只适用于非ie浏览器,ie样式为默认样式
以上就是css怎么去掉select箭头的详细内容,更多请关注美工之家9502669.com其它相关文章!
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
