init
This commit is contained in:
45
Html-Css/00-css写法.html
Normal file
45
Html-Css/00-css写法.html
Normal file
@@ -0,0 +1,45 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width-device-width,initial-scale=1.0">
|
||||
<title>Document </title>
|
||||
|
||||
<!-- No.3
|
||||
rel="stylesheet"
|
||||
引入外部文件
|
||||
作用范围:被引入文件
|
||||
href 各种路径都可以
|
||||
-->
|
||||
<link rel="stylesheet" href="./Html-Css/style.css">
|
||||
|
||||
<!-- No.2
|
||||
内部样式
|
||||
范围:当前文件
|
||||
-->
|
||||
<style>
|
||||
p {
|
||||
color: salmon;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<p><span>【第一章】</span>人之初,性本善。性相近,习相远。苟不教,性乃迁。教之道,贵以专。昔孟母,择邻处。
|
||||
子不学,断机杼。窦燕山,有义方。教五子,名俱扬。养不教,父之过。教不严,师之惰。
|
||||
</p>
|
||||
|
||||
<!-- No.1
|
||||
行内样式
|
||||
范围:当前标签
|
||||
-->
|
||||
<div style="color: pink;">【第一章】人之初,性本善。性相近,习相远。苟不教,性乃迁。教之道,贵以专。昔孟母,择邻处。
|
||||
子不学,断机杼。窦燕山,有义方。教五子,名俱扬。养不教,父之过。教不严,师之惰。
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
Reference in New Issue
Block a user