1.内联式

<p style="color:red;font-size: 12px">iutt</p>

2.嵌入式

<style type="text/css">
span{
color: red;
}
</style>

3.外部式

<link rel="stylesheet" type="text/css" href="css.css">
</head>

优先级  就近原则   内联式>嵌入式>外部式

posted on 2017-07-17 20:37  冰域  阅读(452)  评论(0编辑  收藏  举报