第十二章使用CSS样式表
目录
5.10文本反排unicode-bidi、direction
6.2其他边距margin-top、margin-left、margin-right
6.5其他边距padding-bottom、padding-right、padding-left
1、认识CSS
2、CSS的基本语法
2.1CSS的基本语法
2.2添加CSS的方法
添加CSS有4种方法:链接外部样式表、内部样式表、导入外部样式表和内嵌样式。
1.链接外部样式表
2.内部样式表
3.导入外部样式表
4.内嵌样式
3、字体属性
3.1字体属性
3.2字号属性
3.3字体风格font-style
3.4加粗字体font-weight
3.5小写字母转大写font-variant
3.6字体符合属性
4、颜色和背景属性
4.1颜色属性color
4.2背景颜色background-color
4.3背景图像background-image
4.4背景重复background-repeat
4.5背景附件background-attachment
4.6背景位置background-position
4.7背景复合属性background
5、段落属性
5.1单词间隔word-spacing
5.2字符间隔letter-spacing
5.3文字修饰text-decoration
5.4垂直对齐方式vertical-align
5.5文本转换text-transform
5.6水平对齐方式text-align
5.7文本缩进text-indent
5.8文本行高line-height
5.9处理空白white-space
5.10文本反排unicode-bidi、direction
6、外边距与内边距属性
1.内容区
2.内边距
3.边框
4.外边距
6.1上边距margin-top
6.2其他边距margin-top、margin-left、margin-right
6.3外边距复合属性margin
6.4顶端边距padding-top
6.5其他边距padding-bottom、padding-right、padding-left
类似、同上
6.6内边距复合属性padding
7、边框属性
7.1边框样式border-style
7.2边框宽度border-width
7.3边框颜色border-color
7.4边框属性border
8、定位属性position
8.1定位方式position
8.2元素位置top、right、bottom、left
8.3层叠顺序z-index
8.4浮动属性float
8.5清除属性clear
8.6可视区域clip
8.7层的高度和宽度width、height
8.8超出范围overflow
8.9可见属性visibility
9、列表属性
9.1列表符号list-style-type
9.2图像符号list-style-image
9.3列表缩进list-style-position
9.4列表复合属性list-style
10、光标属性cursor
11、滤镜属性
11.1不透明度alpha
11.2动感模糊blur
11.3对颜色进行透明处理chroma
11.4阴影效果dropShadow
11.5对象翻转flipH、flipV
11.6发光效果glow
11.7灰度处理gray
11.8反相invert
11.9X光效果xray
11.10遮罩效果mask
11.11波形滤镜wave