码迷,mamicode.com
首页 > Web开发 > 详细

[html]CSS 小贴士

时间:2016-04-26 00:17:37      阅读:308      评论:0      收藏:0      [点我收藏+]

标签:

CSS 中用四个伪类来定义链接的样式,分别是: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 ;} 以上语句分别定义了 "链接、已访问过的链接、鼠标停在上方时、点下鼠标时"的样式。注意,必须按以上顺序写,否则 显示可能和你预想的不一样。记住它们的顺序是“LVHA”。

[html]CSS 小贴士

标签:

原文地址:http://www.cnblogs.com/z5337/p/5433306.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!