Any way to customize the border and background of an HTML <select>
in IE? I can style the border with simple CSS in Firefox, but apparently not in IE.
相关问题
- Views base64 encoded blob in HTML with PHP
- How to fix IE ClearType + jQuery opacity problem i
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
Include these tags in your code:
This will resolve issues related to Internet Explorer.
IE is most likely in quirks mode. Previous versions of IE didn't draw the
select
element themselves and thus it couldn't be styled properly (as well as some z-order quirks), so on IE < 8 you simply can't do it, unless you re-implement something likeselect
in JS. Take a look at the developer tools (F12) to see which browser and document mode IE is in; if it says "Internet Explorer 8" for the Browser mode and not "Quirks mode" for the document mode, you should be ok :)The following snippet works fine here (IE8β2):