1. 外部樣式表/外部式引入
調用外部css代碼
<link rel="stylesheet" type="text/css" href="mystyle.css">
2. 內部樣式表/嵌入式引入
把css代碼整體寫在HTML文檔中,一般寫在<head>里
<style type="text/css"> div{.....} </style>
3. 關聯樣式表/內鏈式引入
把css代碼直接寫在現有的HTML標簽中
<p style=" color:red" >
1. 外部樣式表/外部式引入
調用外部css代碼
<link rel="stylesheet" type="text/css" href="mystyle.css">
2. 內部樣式表/嵌入式引入
把css代碼整體寫在HTML文檔中,一般寫在<head>里
<style type="text/css"> div{.....} </style>
3. 關聯樣式表/內鏈式引入
把css代碼直接寫在現有的HTML標簽中
<p style=" color:red" >
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。