1.CSS 背景设置
background-color--设置html元素的背景颜色【颜色单词/颜色码】
background-image--设置html元素的背景图片【url('路径')】
background-repeat--设置html元素的背景图片平铺方式
no-repeat--不平铺
repeat-x--水平平铺
repeat-y--垂直平铺
background-attachment--设置背景图像是否固定或者随着页面的其余部分滚动
scroll[滚动]--背景图片随着页面的滚动而滚动,这是默认的
fixed【固定】--背景图片不会随着页面的滚动而滚动
<style>
/* body {
background-color: aquamarine;
} */
body {
background-image: url(imgs/avatar2.png);
background-repeat: no-repeat;
background-attachment: fixed;
}
</style>
2. CSS 文本属性设置
color: 设置文字的颜色
text-align:设置文本的水平对齐方式[居中[center]或左对齐[left]或右对齐[right]
text-decoration:设置文本的装饰线 underline:下划线 overline:上划线 line-through:删除线
通过text-decoration可以设置超链接下面默认的下划线【none】
text-transform:设置字母的大小写 lowercase:小写字母 uppercase:大写字母 capitalize:首字母大写
text-indent:指定文本的第一行的缩进
letter-s