CSS(层叠样式表)
使用方法
行内样式(1000)
外联样式
内部样式
基本选择器
标签选择器(1)
类选择器(class)(10)
id选择器(100)
选择器优先级
id > 类选择器 > 标签选择器
派生选择器
包含选择器(后代选择器)
子选择器
群组选择器
属性选择器
相邻兄弟选择器
通配符选择器
字体样式
font-size:(设置字号大小)
font-style : italic/oblique;(设置字体风格)
font-weight : bold/bolder;(设置字体粗细)
font-family : “宋体”(设置字体)
font-variant:(变体)
font:(综合设置字体样式)
文本样式
(水平对齐方式)text-align : center / left / right;
(设置字体颜色)color : red;
(设置首行缩进)text-indent : 2em;
(行高/设置文字垂直对齐方式)line-height : 30px;
(文本修饰)text-decoration : none/underline/overline/line-through;
背景样式
background-color : #ccc;(设置背