♥css背景属性
background
简称属性,作用是将背景属性设置在一个声明中。
background-attachment
背景图像是否固定或者随着页面的其余部分滚动
background-color
元素的背景颜色
background-image
把图像设置为背景
background-position
设置背景图像的起始位置
background-repeat
设置背景图像是否及如何重复
♡补:背景效果:background-attachment、background-color、background-image、background-position、background-repeat
♥css Text 文本格式
color
文本颜色
direction
文本方向
letter-spacing
字符间距
line-height
行高
text-align
对齐元素的文本
text-decoration
向文本添加修饰
text-indent
缩进元素中文本的首行
text-transform
控制元素中的字母
unicodebidi
设置或返回文本是否被重写
vertical-align
设置元素的垂直对齐
white-space
设置元素中空白的处理方式
word-spacing
设置字间距
♡补:①:justify宽度相等,左、右对齐
②:normal与设置值为0一样
♥css字体属性
font
在一个声明中设置所有的字体属性
font-family
指定文本的字体系列
font-size
指定文本的字体大小
font-style
指定文本的字体样式
font-variant
以小型大写字体或者正常字体显示文本
font-weight
指定字体粗细
♡补:①:斜体:italic;倾斜:oblique
②:用em来设置字体大小,em单位代表像素
*(整理W3cschool中的内容)
*(♥是属性;♡是补充)