? ?? ??? ????
3?? ??? ??? ???? ??? ??? CSS ???? ???? ?? ?? ??? ??? ??????? ??? ?????? ?? ?? ??????
1. 內(nèi)聯(lián)式
CSS? ???? "Super Cool Internet" ???? 粉色
?? ?????.
2. ?? ?? 嵌入式
CSS? ???? ???? 紅色
?? ?????.
3. ????? 外部式
? ???? ???? 藍色
(style.css ??? ??)?? ?????.
??? ????? "Cool Internet"??? ?? ??? ???? 粉色
?? ???? ?? ?? ??? ? ????. ? ? ?? ????? ????? ???? ????? ?????. 內(nèi)聯(lián)式 > 嵌入式 > 外部式
??? ????>?? ????? ?? ??? ????. ???? CSS ???? ??? ??? ????. ?? ???? ??? ????. ?? ??, ??? ?? ????? <link href="style.css" ...> ??? <style type="text/css">...</style> ; ??(???? ?? ??? ???????). ?? ?? ???? ??? ?? ??? ??? ????? ???? ??? ? ????.
?? ???? --就近原則(離被設置元素越近優(yōu)先級別越高)
???.