html中a標籤的四個僞類

今天爲大家介紹一下html中a標籤的四個僞類,即用於向被選中元素添加特殊的效果......

html中a標籤的四個僞類

操作方法

(01)僞類:僞類用於向被選中元素添加特殊的效果。(元素在特定情況下才具備的)如圖分別是將a標籤的link、hover、active、visited修改後的樣式

html中a標籤的四個僞類 第2張
html中a標籤的四個僞類 第3張
html中a標籤的四個僞類 第4張
html中a標籤的四個僞類 第5張

(02)a標籤的四個僞類之link即未訪問(默認)的a標籤樣式

html中a標籤的四個僞類 第6張
html中a標籤的四個僞類 第7張

(03)a標籤的四個僞類之hover即鼠標懸停(鼠標滑過) 的a標籤樣式

html中a標籤的四個僞類 第8張
html中a標籤的四個僞類 第9張

(04)a標籤的四個僞類之active即鏈接激活(鼠標按下)的a標籤樣式

html中a標籤的四個僞類 第10張
html中a標籤的四個僞類 第11張

(05)a標籤的四個僞類之visited即訪問過後(點擊過後)的a標籤樣式

html中a標籤的四個僞類 第12張
html中a標籤的四個僞類 第13張