我已经为我的选择框设置了样式,但我仍然可以在 Firefox 的选择框中看到箭头,我已经设置了 css:
background:transparent;
content:'';
apperiance:none;
这在 Chrome 上有效,但在 Firefox 上我仍然看到默认箭头,是否也可以在 Firefox 上删除它?
我已经为我的选择框设置了样式,但我仍然可以在 Firefox 的选择框中看到箭头,我已经设置了 css:
background:transparent;
content:'';
apperiance:none;
这在 Chrome 上有效,但在 Firefox 上我仍然看到默认箭头,是否也可以在 Firefox 上删除它?
Unfortunately there isn't yet a cross-browser compatible route of styling form elements with CSS: it's not usually left to the designer to have control over their appearance/behaviour so form elements are notoriously difficult to style. Many browsers specifically do not allow you to style them at all!
If you need to get a consistent look across all browsers, the only route is to use JavaScript to replace the form element in-view with stylised HTML elements.
Here's an article that lists a few of the options available for you: http://www.jquery4u.com/plugins/10-jquery-selectboxdrop-down-plugins/