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

How to Remove the Select Arrow in Internet Explorer 9?

Patricia Arquette
Release: 2024-11-18 22:29:02
Original
1036 people have browsed it

How to Remove the Select Arrow in Internet Explorer 9?

Removing Select Arrow on IE

In the pursuit of customizing select elements by removing their default arrows, the aforementioned CSS seems to fall short when it comes to Internet Explorer 9 (IE9). Here's how to rectify this issue:

Solution:

  • IE9 Hack: As suggested by @Spudley, a CSS hack can be applied to IE9. Adjust the div:before CSS to align with the customized height and width of the div and select elements.
  • IE10 CSS3: For IE10 and above, the following CSS3 code can be employed:
select::-ms-expand {
    display: none;
}
Copy after login

Alternative Options:

  • jQuery Plugin (Chosen.js): Leveraging a jQuery plugin like Chosen.js offers a user-friendly solution.
  • Custom JavaScript: Creating a custom JavaScript script can also effectively remove the select arrow.

The above is the detailed content of How to Remove the Select Arrow in Internet Explorer 9?. 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