a vs a:link, What is the difference?

前端 未结 3 1850
滥情空心
滥情空心 2020-12-23 11:41

What is the differences between a {...} and a:link{...}?

Are there different usages, and benefits between them?

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-23 12:19

    a:link only affects links that have a href attribute basically (if a:visited, a:hover or a:active does not apply)... The main case where I've noticed a difference is that a:link doesn't affect Named Anchors whereas a will. Also, a is the default style if none of the other pseudo classes are defiend.

    Section 1
    

提交回复
热议问题