Home  >  Article  >  Web Front-end  >  How to Remove the Select Arrow in IE9?

How to Remove the Select Arrow in IE9?

Patricia Arquette
Patricia ArquetteOriginal
2024-11-15 03:52:02436browse

How to Remove the Select Arrow in IE9?

Removing the Select Arrow in IE9

Question:

How can you remove the select element arrow in Internet Explorer 9 (IE9)?

Answer:

In IE9, the arrow cannot be removed using solely CSS. Instead, a hack is required, as provided by @Spudley in the question content. If the height and width of the div and select have been customized, the div:before CSS must be adjusted to match.

For IE10 and higher, you can utilize CSS3 by applying the following code:

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

If you prefer a jQuery plugin, consider using Chosen.js or creating your own JavaScript solution.

The above is the detailed content of How to Remove the Select Arrow in IE9?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn