backgroundColor

backgroundColor backgroundColor *
*前のトピック: backgroundAttachment
*次のトピック: backgroundImage

backgroundColor

解説

エレメントのバックグラウンドカラーを設定したり、設定を読み出す。

構文

object**.style.backgroundColor**[ = backgroundColor]

注意事項

サポートされる色についてはカラーテーブルを参照すること。

このプロパティは読み書き可能である。

適用

HTMLタグ A, ADDRESS, B, BIG, BLOCKQUOTE, BODY, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, DD, DFN, DIR, DIV, DL, DT, EM, FIELDSET, FORM, H1, H2, H3, H4, H5, H6, HTML, I, IMG, INPUT, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OL, P, PLAINTEXT, PRE, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
スクリプト style

CSS属性

background-color

Up トップに戻る
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.