css中定义超级链接的样式
生活随笔
收集整理的這篇文章主要介紹了
css中定义超级链接的样式
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
CSS中用四個(gè)偽類來定義鏈接的樣式,分別是:a:link、a:visited、a:hover和a : active,例如:
a:link{font-weight : bold ;text-decoration : none ;color : #c00 ;}a:visited {font-weight : bold ;text-decoration : none ;color : #c30 ;}
a:hover {font-weight : bold ;text-decoration : underline ;color : #f60 ;}
a:active {font-weight : bold ;text-decoration : none ;color : #F90 ;}
以上語句分別定義了"鏈接、已訪問過的鏈接、鼠標(biāo)停在上方時(shí)、點(diǎn)下鼠標(biāo)時(shí)"的樣式。注意,必須按以上順序?qū)?#xff0c;否則顯示可能和你預(yù)想的不一樣。記住它們的順序是“LVHA”。
轉(zhuǎn)載于:https://www.cnblogs.com/shuangpeng/archive/2009/02/15/1391071.html
總結(jié)
以上是生活随笔為你收集整理的css中定义超级链接的样式的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: .Net Discovery 系列之二-
- 下一篇: 利用反射,实现动态调用winform窗体