remove standard arrow from select dropdown in Opera (arrow in other browsers was fixed)

北慕城南 提交于 2019-12-12 01:12:46

问题


I'm trying to hide the standard arrow from the select dropdown list.

I've resolved it for all browsers, thanks to stackoverflow.com, but still can't remove or hide it for the Opera (my current version is Opera 12.16).

Pure css solution is needed.

select {
    background: url(/path/to/the/arrow.png) no-repeat center right;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-indent: 0.01px;
    text-overflow: '';
}
/*IE*/
select::-ms-expand {
    display: none;
}
/*FF*/
@-moz-document url-prefix() {
    select {padding-right:5px;}
}

回答1:


OK, I didn't find the solution. However, what I did is I applied the style background-image:none; for Opera only so only one standard arrow is displayed in Opera.



来源:https://stackoverflow.com/questions/21375881/remove-standard-arrow-from-select-dropdown-in-opera-arrow-in-other-browsers-was

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!