本文介绍了风格禁用多个选择 - 谷歌浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图弄清楚我可以如何设计一个禁用的多重选择元素,因此您可以看到选定的项目。



I'它似乎有它的工作原理:



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



这只是windows版本的chrome不起作用(请参阅图片)。 >



如何去做更改前景颜色或禁用选定的颜色,以便您可以阅读所选文本?



谢谢

解决方案

我并不完全理解你的目标,但我在Windows上试图设计一个选择元素(未禁用)的Chrome中遇到类似问题。

  {-webkit-外观:无; } 

它起作用了!我希望这有帮助。

来源:


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 chromePC: 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

解决方案

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

这篇关于风格禁用多个选择 - 谷歌浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 02:09