Is it possible to make an HTML anchor tag not clickable/linkable using CSS?

前端 未结 9 2174
故里飘歌
故里飘歌 2020-12-12 11:33

For example if I have this:

page link

Is there anything I can use for the style attribute that

9条回答
  •  误落风尘
    2020-12-12 11:53

    That isn't too easy to do with CSS, as it's not a behavioral language (ie JavaScript), the only easy way would be to use a JavaScript OnClick Event on your anchor and to return it as false, this is probably the shortest code you could use for that:

    page link
    

提交回复
热议问题