- a:hover 必須位於 a:link 和 a:visited 之後
- a:active 必須位於 a:hover 之後
文本修飾
text-decoration 屬性大多用於去掉鏈接中的下劃線:
實例
a:link {text-decoration:none;} a:visited {text-decoration:none;} a:hover {text-decoration:underline;} a:active {text-decoration:underline;}
背景色
background-color 屬性規定鏈接的背景色:
實例
a:link {background-color:#B2FF99;} a:visited {background-color:#FFFF85;} a:hover {background-color:#FF704D;} a:active {background-color:#FF704D;}
http://www.w3school.com.cn/tiy/t.asp?f=csse_vertical-align
http://www.w3school.com.cn/css/css_selector_descendant.asp