Use CSS to make a span not clickable

后端 未结 7 2204
无人及你
无人及你 2020-12-08 03:55

    
    
    
        
      
7条回答
  •  攒了一身酷
    2020-12-08 04:19

    CSS is used for applying styling i.e. the visual aspects of an interface.

    That clicking an anchor element causes an action to be performed is a behavioural aspect of an interface, not a stylistic aspect.

    You cannot achieve what you want using only CSS.

    JavaScript is used for applying behaviours to an interface. You can use JavaScript to modify the behaviour of a link.

提交回复
热议问题