Possible to make a:after/before pseudo elements clickable as part of the link?

后端 未结 8 1742
不知归路
不知归路 2020-12-16 09:42

pseudo elements a:after a:before allow you to add text that appears to be part of the link. However, I can\'t seem to figure out a way to make that portion clickable as part

8条回答
  •  有刺的猬
    2020-12-16 10:08

    The :before and :after add content before and after the selector. In CSS, there's no selector that let's you get and edit the content inside a tag. The only way to make that happen would be with jQuery or javascript to actually edit the HTML.

提交回复
热议问题