Use CSS to make a span not clickable

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

    
    
    
        
      
7条回答
  •  情歌与酒
    2020-12-08 04:35

    Using CSS you cannot, CSS will only change the appearance of the span. However you can do it without changing the structure of the div by adding an onclick handler to the span:

    
    
    
    
    
    
    
    

    You can then style it so that it looks un-clickable too:

    
    
         
    
    
    
    
    
    

提交回复
热议问题