Use CSS to make a span not clickable

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

    
    
    
        
      
7条回答
  •  不知归路
    2020-12-08 04:22

    CSS relates to visual styling and not behaviour, so the answer is no really.

    You could however either use javascript to modify the behaviour or change the styling of the span in question so that it doesn't have the pointy finger, underline, etc. Styling it like that will still leave it clickable.

    Even better, change your markup so that it reflects what you want it to do.

提交回复
热议问题