When an option is selected (regardless of its color or background color), it's background will be set to blue and the font color to white. How to change these behaviors? Say I want to set the font color to red, while an option is selected.
[updated]
As far as I know, you cannot do that because it is not rendered in the browser. this is rendered by the OS. so if you want that badly, build your own or use other libraries' menus like Jquery UI's ..
Example (using jquery ui set your css to this while using menus):
.ui-widget-content .ui-state-focus{
color:red;
background-color:lime;
background-image:none;
background-repeat:no-repeat;
}
Or just customize the library from HERE (preferable)
check THIS to know how to use Jquery ui menus
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.