Background color for drop down menu options is not working in Safari, Chrome + MAC

亡梦爱人 提交于 2019-12-07 16:02:25

问题


I have a drop down box where I am setting background color of options as gray based on some conditions. The problem is its all work fine with almost browser on windows machine but its not working in Safari & Chrome on MAC OS.

I used color as:

  • Color name: Gray,
  • hex color code: #CCCCCC and
  • with rgb(204,204,204) but all of three isn't working.

I done goggling and found that there is some problem with safari in MAC. I am not sure how to fix this. There is an open post at mac forums which didn't replied yet:

http://www.mac-forums.com/forums/web-design-hosting/144101-drop-down-background-color-mac-safari-not-working.html.

Thanks


回答1:


As you've discovered, the menu that appears when a <select> dropdown menu is activated cannot be styled under some browsers and OSes. You will need to live with the OS default appearance for this control.



来源:https://stackoverflow.com/questions/12559093/background-color-for-drop-down-menu-options-is-not-working-in-safari-chrome-m

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