12.15
CSS的基本属性:
1.字体属性:
font-family 设置字体 当属性值有多个单词时用“ ”括起来。
font-size 设置尺寸单位一般为 px(像素)。
font-style 设置风格 normal为正常,italic为斜体,oblique为倾斜。
font-weight 设置粗细 normal为正常,lighter为细,bdd为粗,bdder为特粗。
2.文本属性:
color 设置颜色 text-align设置水平对齐方式 left,center,right
text——docoration 向文本添加修饰,none无,underline下划线,overline上划线,line-through删除线。
3.背景属性:
background-attachment 设置背景图像是否固定或随着页面的其余部分滚动。
background-color 设置元素背景颜色。
background-image 把图像设置为背景图像。
background-postion 设置起始位置。
background-repeqt 设置是否重复以及如何重复。