[英]HTML, CSS | Select previously removed arrow reveal
My issue is that I have to set all the selected arrows on my website to be hidden by default with the following code. 我的问题是,我必须使用以下代码将网站上所有选定的箭头设置为默认隐藏。
select::-ms-expand {
//remove default down arrow in IE
display: none;
}
select.form-control {
-moz-appearance: none;
-webkit-appearance: none;
appearance: none;
}
Then I created a new select, which I don't want to carry this effect. 然后,我创建了一个新的选择,我不想保留这种效果。 I want this to appear as default.
我希望此显示为默认值。 My question is what do I need to put in order to overwrite this.
我的问题是我需要写些什么才能覆盖它。
select.select-p-text::-ms-expand {
//remove default down arrow in IE
display: ?;
}
select.select-p-text.form-control {
-moz-appearance: ?;
-webkit-appearance: ?;
appearance: ?;
}
Thanks, 谢谢,
Kieran 基兰
try using this code sir 尝试使用此代码先生
select:not(.selectClass)::-ms-expand {
//remove default down arrow in IE
display: none; }
select:not(.selectClass).form-control {
-moz-appearance: none;
-webkit-appearance: none;
appearance: none; }
this will make the class called inside the :not() to inherit no css design 这将使在:not()内部调用的类不继承任何CSS设计
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.