1、基本语法

<head>

<style type="text/css">

选择器(即修饰对象){

对象的属性1:属性值1;

对象的属性2:属性值2;

}

</style>

</head>

2、分类

标签选择器

类选择器.

id选择器#

 3、文本属性

font-size字号

font-family字体

font-weight粗细

font(顺序:粗细,大小,字体)

line-height行高

text-align对齐

letter-spacing字符间距

text-decoration文本修饰

white-space

 4、盒子模型

border边框

margin外边距

padding内边距

5、背景属性

background-color背景颜色

background-image背景图片

background-repeat是否平铺

background-position位置(偏移)

应用:背景偏移

6、列表属性

list-style列表风格

posted on 2020-03-15 16:30  嘻嘻_嘻  阅读(97)  评论(0编辑  收藏  举报