Style disabled multiple select – google chrome

匆匆过客 提交于 2019-12-11 06:13:01

问题


I’m trying to figure out how I can go about styling a disabled multiple select element, for google chrome so you can see the selected items.

I’ve seem to have it working in:

Mac: firefox, safari and chrome PC: ie7, ie8, and firefox

It’s just the windows version of chrome that’s not working (see image).

How can a go about change the foreground color, or the disabled selected color so you can read the selected text?

Thanks


回答1:


I don't entirely understand your goal, but I ran into a similar problem in Chrome on Windows trying to style a select element (not disabled). The element was given a white background by the browser and I could not override it, until I tried this:

{ -webkit-appearance: none; }

And it worked! I hope this helps.

Source: Background Image for Select (dropdown) does not work in Chrome



来源:https://stackoverflow.com/questions/7692442/style-disabled-multiple-select-google-chrome

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!