css--引入方式
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<!-- <style>-->
<!-- p{-->
<!-- color: red;-->
<!-- font-size: 40px;-->
<!-- }-->
<!-- a{-->
<!-- text-decoration: none;-->
<!-- }-->
<!-- </style>-->
<!-- <link rel="stylesheet" href="css_code1.css" >-->
<style>
@import "css_code1.css";
</style>
</head>
<body>
<div style="color: red; background-color: beige">hello world</div>
<p>hello world</p>
<a href="https://www.baidu.com">百度</a>
</body>
</html>
p{
color: gold;
font-size: 40px;
}
a{
text-decoration: none;
font-size: 40px;
}
本文来自博客园,作者:关于段主任的一切,转载请注明原文链接:https://www.cnblogs.com/fairylandfuture/p/15111772.html