個人html 的學習體會,帶你了解html的學習內容
1.內嵌樣式(內嵌樣式)
示例:正文
2.內部風格
示例:頭部
style type='text/css '
正文{
背景色: # cccccc;}/樣式/標題
3.外部風格
示例:style.css
body { background-color : # cccccc;
}index.html
頭
link rel=' style sheet ' type=' text/CSS ' href=' style . CSS '/
/head css選擇器
1.標簽選擇器(也稱為元素選擇器和類型選擇器)
2.id和類別選擇器
3.屬性選擇器[title]a { color : red;}(對於屬性為title的A標記的所有元素,它會變成紅色)
4.包括選擇器。
5.偽類選擇器
a : link { color : # ff 0000;Text-decoration: none} /*未訪問的鏈接*/
a : visited { color : # 00ff 00;Text-decoration: none} /*訪問過的鏈接*/
a : hover { color : # ff 00 ff;Text-decoration :下劃線}/*鼠標在鏈接上*/
a : active { color : # 0000 ff;Text-decoration :下劃線}/*激活鏈接*/
6.當務之急是:
內嵌樣式表內部樣式表外部樣式表
7.選擇器id的定義優先於類的定義
8.通配符
*9.瀏覽器優先!重要的注釋語句。
本文到此結束,希望對大家有所幫助呢。
评论留言