[置顶] css 超级连接的四种状态

为了保证能看到不同状态下的连接样式,正确的样式顺序应该是:

" link - visited - hover - active "或" LVHA "(缩写)。


A:link {color: blue;} /* specificity = 1,1 */

A:active {color: red;} /* specificity = 1,1 */
      A:hover {color: magenta;} /* specificity = 1,1 */
     A:visited {color: purple;} /* specificity = 1,1 */

posted @ 2013-03-31 15:47  shouqiang Wei  阅读(226)  评论(0编辑  收藏  举报