セレクトメニューの背景色を指定する

動作ブラウザ 【 IE:4.0  NN:6.0】 ■CSSバージョン【1】
Internet Explorer Netscape Navigator iCab
3.0x 4.0x 4.5 5.0x 5.5 6.0 2.0x 3.0x 4.x 6.0 2.x
Windows - × × × -
Macintosh × - - × × × ×
UNIX - - - - - - × × × -

ポイント .bgc { background-color:yellow; }
説  明 セレクトメニューの背景色を指定するには「background-color:色; 」のように指定します。色はカラー名またはカラーコードで指定します。項目が選択された場合に項目自体には色が付かないブラウザ(Mac+IE)もあります。
サンプル <html> <head> <title>セレクトメニューの背景色を指定する</title> <style type="text/css"><!-- .bgc { background-color:yellow; } --></style> </head> <body> <form> <select class="bgc"> <option>項目1</option> <option>項目2</option> <option>項目3</option> <option>項目4</option> </select> </form> </body> </html>
補足説明 なし

■サンプルを実行する >>実行
■各ブラウザでの動作結果を見る >>View!