Wie ändere ich bitte die blaue Markierung in diesem Dropdown?Wie ändere ich die Farbe der blauen Hervorhebung im Dropdown-Feld?
Hier ist der Code: -
<html>
<head>
<title></title>
<style>
select { border:0; color:#EEE; background:transparent;
font-size:20px; font-weight:bold; padding:2px 10px; width:378px;
*width:350px; *background:#58B14C; -webkit-appearance: none; }
#mainselection { overflow:hidden; width:350px;
-moz-border-radius: 9px 9px 9px 9px;
-webkit-border-radius: 9px 9px 9px 9px;
border-radius: 9px 9px 9px 9px;
box-shadow: 1px 1px 11px #330033;
background: url("http://www.danielneumann.com/wp-content/uploads/2011/01/arrow.gif") no-repeat scroll 319px 5px #58B14C;
}
</style>
</head>
<body>
<div id="mainselection">
<select>
<option>Select an Option</option>
<option>Option 1</option>
<option>Option 2</option>
</select>
</div>
</body>
</html>
Ich mag würde die Markierungsfarbe ändern, grau, wenn dies möglich ist.
Mögliche doppelte Hilfe: http://stackoverflow.com/questions/1667086/changing-select-highlight-color/1667105 –
mögliches Duplikat von [Hintergrundfarbe der Auswahlliste ändern bei Hover] (http://stackoverflow.com/questions/10484053/change-select-list-option-background-colour-on-hover) – George
Ich nicht denke du kannst. Sie können den Hintergrund der einzelnen Optionen festlegen, aber nicht die Hervorhebung. Vielleicht möchten Sie jQuery-Plugins, z. http://dev7studios.com/dropit/ –