HTMLTableCellElement: bgColor ããããã£
Deprecated
Avoid using this feature in new projects. Some table styling attributes have no effect. They are superseded by CSS. This feature may be a candidate for removal from web standards or browsers. >
The HTMLTableCellElement.bgColor property is used to set the background color of a cell or get the value of the obsolete bgColor attribute, if present.
ã¡ã¢:
ãã®ããããã£ã¯éæ¨å¥¨ã¨ãªã£ã¦ãããèæ¯è²ã®è¨å®ã«ã¯ CSS ã使ç¨ãã¹ãã§ãã代ããã« background-color ããããã£ã使ç¨ãã¦ãã ããã
å¤
以ä¸ã®å¤åã®ã©ã¡ããã使ç¨ã§ãã¾ãã
- ååä»ãè²ããã¨ãã°
redãblue - 16 é²ã³ã¼ãããã¨ãã°,
#0000ddã#00d
ã¡ã¢:
ããã§åãå
¥ããããå¤ã¯ãCSS ã®è²å¤ã®ä¸é¨ã«éå®ããã¦ãã¾ãã<named-color> ããã³ 3 æ¡ã¾ã㯠6 æ¡ã® <hex-color>ï¼ã¢ã«ãã¡ãã£ã³ãã«ãªãï¼ã®ã¿ã使ç¨å¯è½ã§ããCSS ã§ã¯ãã¹ã¦ã® HTML è²å¤ãæå¹ã§ããããã®éã¯å½ã¦ã¯ã¾ãã¾ããã
ä¾
代ããã« CSS ã® background-color ã使ç¨ãã¦ãã ãããHTML ã®è¡¨è¦ç´ ã§ background-color ã使ç¨ããä¾ ã¯ãbackground-color ãã¼ã¸ã«ããã¾ãã
仿§æ¸
| 仿§æ¸ |
|---|
| HTML > # dom-tdth-bgcolor > |