Select option background color hover

Select option background color hover

Posted: robgor On: 20.07.2017

I set the style of background color for options in javascript code and then set the hover style in CSS file,. I am not sure how to keep the original option's background color.

select option background color hover

The sample in the following link shows how to use CSS to customize an app's look, or brand it, by restyling text, backgrounds, and controls. It also shows how to dynamically change the active style sheet. Yanping Wang MSDN Community Support Feedback to us Develop and promote your apps in Windows Store Please remember to mark the replies as answers if they help and unmark them if they provide no help.

select option background color hover

The survey will appear here when you've completed your visit, so please do not close this window. Microsoft is conducting an online survey to understand your opinion of the Msdn Web site.

html - Change Select List Option background colour on hover - Stack Overflow

If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site. Downloads Visual Studio SDKs Trial software Free downloads Office resources SharePoint Server resources SQL Server Express resources Windows Server resources Programs Subscriptions Overview Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups Events Community Magazine Forums Blogs Channel 9 Documentation APIs and reference Dev centers Samples Retired content.

The content you requested has been removed. Remove From My Forums.

css - Change Select List Option background colour on hover in html - Stack Overflow

Sign in to vote. For option tag if I give it different background color for each option item for example: Is that possible not change the color? OR when I hover the option, it just show the frame of option and change color.

How to Select and Change Colors in Photoshop

Thursday, March 14, 9: Hi, Yanping Thanks for replying! However it still could not keep the original background color, as a result I use menu component to implement it. Marked as answer by Matt Small Microsoft employee, Moderator Friday, March 22, 6: Monday, March 18, 3: Hi Stacy, I am sorry.

I do not understand what you are trying to do. Do you simply want to set a hover color?

Thursday, March 14, Hi Jeff, Sorry for not describe very clearly. I set the style of background color for options in javascript code and then set the hover style in CSS file, however it does not work in CSS's style. Friday, March 15, 1: Hi StacyChung, I am not sure how to keep the original option's background color. Edited by Yanping Wang Microsoft contingent staff, Moderator Friday, March 15, 7: Friday, March 15, 7: Would you like to participate?

css - Html Select box options on Hover? - Stack Overflow

Help us improve MSDN. Dev centers Windows Office Visual Studio Microsoft Azure More Learning resources Microsoft Virtual Academy Channel 9 MSDN Magazine. Community Forums Blogs Codeplex. Programs BizSpark for startups Microsoft Imagine for students.

Rating 4,1 stars - 601 reviews
inserted by FC2 system