## 第三节 背景属性
- 定义:给网页或网页元素设置背景颜色,图片和背景图片的拉伸方向及其位置等样式。
- background-color背景颜色(设置网页或网页元素的背景颜色)
语法:background-color:颜色英文单词/颜色的十六进制数/颜色的rgb值/transparent(设置透明背景,为默认的背景颜色)/inherit; - background-image属性(设置网页或网页元素的背景图片)
语法:background-image:url(image_file_path)|inherit; - background-repeat属性(对背景图片实现水平,垂直同时重复或单方面重复或不重复等设置)
语法:background-repeat:repeat(都重复)|repeat-X(水平重复)|repeat-Y(垂直重复)|no-repeat(不重复)|inherit(继承父级元素背景图片属性) - background-position属性
语法:background-position:表示位置的关键字|X% Y%|Xpos Ypos;
注意:两属性用空格分隔。 - background-attachment属性(背景图片随页面滚动条滚动而滚动)
语法:background-attachment:scroll(默认)|fixed(不滚动)|inherit(继承父级元素); - background属性(简写属性)
语法:background:background-color|background-image[/background-position]background-repeat|background-attachment;
注意:属性值之间使用空格分隔,background必须有背景颜色或图片。
## 第四节 display属性 - 定义:实现block块级元素,inline行内元素以及inline-block行内块级元素之间的相互转换,改变元素类型。
- 语法:display:none(隐藏元素)|block(显示块级元素)|inline(显示行内元素)|inline-block(显示行内块级元素)|inherit(继承父级元素的属性)
## 第五节 列表属性 - 属性1.list-style(用于把所有用于列表的属性设置于一个声明中)
2.list-style-image(将图片设置为列表项前导符)
3.list-style-type(用于设置列表项目类型)
参数:dise(默认为实心点)
circle(空心点) square(实心正方形)
decimal(阿拉伯数字)
lower/upper_Roman(小/大写罗马数字)
lower/upper-alpha(小/大写英文字母)
none(不添加符号)
## 第六节 表格属性
见下表(作者设备能力有限。)