语法: background-color : transparent | color 取值: transparent : 默认值。背景色透明 color : 指定颜色。请参阅 颜色单位 和 附录:颜色表
说明: 设置或检索对象的背景颜色。 当背景颜色与背景图像( background-image )都被设定了时,背景图片将覆盖于背景颜色之上。 此属性对于 currentStyle 对象而言是只读的。对于其他对象而言是可读写的。 对应的脚本特性为 backgroundColor 。 示例: p { background-color: silver } div { background-color: rgb(223,71,177) } body { background-color: #98AB6F } pre { background-color: transparent; }
|