CSS的三种方式
- 内联样式
 - 行内样式表
 外部样式表(推荐)
<!--1.内联式 (行内式)2.嵌入式3.外部式--><!DOCTYPE html><html><head><title></title><!-- 嵌入式 --><style type="text/css">h3{color: green;}</style><!-- 外部式 --><link rel="stylesheet" type="text/css" href="css/index.css"></head><body><!-- 内联式 --><p style="color: red;">文本颜色为什么颜色?</p><h3>沐风</h3><h4>ecithy</h4></body></html>
css/index.css css目录下的index.css
p{color: orange;font-size: 14px;font-weight: bold;}#peiqi{color: green;}#jj{color: red;}.active{color: gray;}.title{font-size: 30px;}/*#id选择器名称{样式;}*/
三种引入方式的优先级
内联式 > 嵌入式 > 外部式
