The :link pseudo-class does match visited links

后端 未结 2 1864
失恋的感觉
失恋的感觉 2021-01-24 00:03

I was reading about CSS pseudo-classes and I came across the :link pseudo-class.

Everyone says that the :link pseudo-class matches link element

2条回答
  •  盖世英雄少女心
    2021-01-24 00:42

    The :visited psuedoselector can change many properties (e.g. color, background-color) but unfortunately font-size is not one of them. This is why it would not change your font-size even if you were setting it in your :visited code.

    The reason for the restriction is for privacy reasons. You can see more about the restrictions to visited here

提交回复
热议问题