css的3种导入方式 行内样式: <h1 style="color:red;">标题</h1> 内部样式: <style> h1{ color:red; } </style> 外部样式: <link rel="stylesheet" href=".css文件的地址"> h1{ color:red; } 优先级(就近原则) 行内样式 > 外部样式 > 内部样式