跳到内容(1) Cob.com.cn

CodeCoke

CSS2.0中文手册·background-color

您的位置:首页>>教程>>CSS2.0中文手册>>background-color

background-color

版本:CSS1  兼容性:IE4+ NS4+ 继承性:无

语法:

参数:

  1. transparent :  背景色透明
  2. color :  指定颜色。请参阅颜色单位附录:颜色表

说明:

示例:

p { background-color: silver }

div { background-color: rgb(223,71,177) }

body { background-color: #98AB6F }

pre { background-color: transparent; }