ドロップダウンがフォーカスされているときに IE から青色の背景色を変更したいのですが、これを行うための CSS が見つからないようです。
<select id=focusSelect><option>Option</option></select>
JS:
document.getElementById("focusSelect").focus();
CSS:
select:focus{
background-color: red;
}
具体的には、ドロップダウンが開いていない場合です。オプションのスタイリングは問題ありません。
また、これが可能かどうかについての決定的な答えも見つかりません。
背景色を設定してoption
も、青色はクリアされません。
option {
background-color: green;
}