<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CSS导入方式</title>
<style>
h1{
color: black;
}
h3{
color: aquamarine;
}
</style>
<link rel="stylesheet" href="css/01.css">
</head>
<body>
<h1 style="color: blue">我是标题一</h1>
<h2 style="color: rebeccapurple">我是标题二</h2>
<h3>我是标题三</h3>
<h4>我是标题四</h4>
</body>
</html>
h4{
color: darkgreen;
}
h1{
color: coral;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>导入式和链接式</title>
<style>@import "css/01.css";</style>
<link rel="stylesheet" href="css/01.css">
</head>
<body>
<h1>我是标题1</h1>
<h4>我是标题4</h4>
</body>
</html>