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

How to Remove the Select Arrow in IE9?

Patricia Arquette
Release: 2024-11-15 03:52:02
Original
511 people have browsed it

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;
}
Copy after login

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!

source:php.cn
Statement of this Website
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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template