background-color

このエントリーをはてなブックマークに追加

background-colorプロパティは要素の背景色を設定できるプロパティです。

初期値は「transparent(透明)」ですが任意の色が指定できます。背景色はbackground-imageの下に描画されます。

.target{
	background-color:#FFF;
}

背景色が描画される範囲はbackground-clipプロパティで指定できます。

IE7以前では「inherit」による親要素の値の継承に対応していません。

参考URL

3.2. Base Color: the ‘background-color’ property - W3C

登録日 : 2013年12月18日 最終更新日 : 2013年12月24日

同じカテゴリー(Background)のエントリー

検索

スポンサードリンク

バージョン

リファレンス