CSS 文章目录 CSS 1.样式定义方式 行内样式表(inline style sheet) 内部样式表(internal style sheet) 外部样式表(external style sheet) 注释 2.选择器 标签选择器 ID选择器 类选择器 伪类选择器 复合选择器 通配符选择器 伪元素选择器 样式渲染优先级 3.颜色 预定义的颜色值 16进制表示法 RGB表示法 RGBA表示法 取色方式 4.文本 `text-align` `line-height` `letter-spacing` `text-indent` `text-decoration` `text-shadow` 5.字体 `font-size` `font-style` `font-weight` `font-family` 6.背景 `background-color` `background-image` `background-size` `background-repeat` `background-position` `background-attachment` 7.边框 `border-style` `border-width` `border-color` `border-radius` `border-collapse` 8.元素展示格式 `display` `white-space` `text-overflow` `overflow` 9.内边距与外边距 `margin` `padding` 10.盒子模型 `box-sizing` 11.位置 `position` 定位类型: 取值: 12.浮动