CSS IE 的 css3 外观属性

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6088925/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 00:36:21  来源:igfitidea点击:

css3 appearance property for IE

cssappearance

提问by Emil Avramov

I have a problem with the css3 appearance property in IE. I need it to hide a select menu's arrow, but it's just not working. I tried PIE.htc, ie-css3.htc and other IE CSS3 supporters, but none of them work with appearance. Help me, please!

我在 IE 中的 css3 外观属性有问题。我需要它来隐藏选择菜单的箭头,但它不起作用。我尝试了 PIE.htc、ie-css3.htc 和其他 IE CSS3 支持者,但它们都不适用于外观。请帮帮我!

Thanks in advance!

提前致谢!

回答by React Developer

.listing select{
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    background: url("../images/select-bg.jpg") no-repeat scroll 0 0 transparent;
    text-indent: 0.01px;
    text-overflow: "";

}
.listing select::-ms-expand{
    display: none;
}

Note: For Chrome, Mozilla & IE 10 Works fine.

注意:对于 Chrome、Mozilla 和 IE 10 工作正常。

回答by Nafissur

appearance property is no longer supported. If required you can use moz-appearance for firefox or -webkit-appearance for chrome

不再支持外观属性。如果需要,您可以对 firefox 使用 moz-appearance 或对 chrome 使用 -webkit-appearance