<分区>
<分区>
此 CSS 代码无效。
select::-ms-expand {
display: none;
}
我的下拉代码:
select::-ms-expand {
display: none;
}
select {
width: 100px;
height: 30px;
-webkit-appearance: none; /* gets rid of default appearance in Webkit browsers*/
-moz-appearance: none; /* Get rid of default appearance for older Firefox browsers */
-ms-appearance: none; /* get rid of default appearance for IE8, 9 and 10*/
appearance: none;
background-color: none;
border: none;
border-top-right-radius: 0px;
border-bottom-right-radius:0px;
-webkit-border-top-right-radius:0px;
-moz-border-bottom-right-radius:0px;
background-image: url('../img/arrow_question.png');
background-position: center;
background-size: 30%;
background-repeat: no-repeat;
}
我找了很久都没有找到解决办法。
最佳答案
使用 appearance: none;
来实现您想要的。
例如,
select{
appearance: none;
-moz-appearance: none;
-webkit-appearance: none;
background: url("yourBackroundImagePath.extension") no-repeat scroll 0 0 transparent;
}
select::-ms-expand{
display: none;
}
希望这对您有所帮助。
关于css - 如何删除 Internet Explorer 8 IE8 中的默认下拉箭头?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23540026/