Use CSS to make a span not clickable

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

    
    
    
        
      
7条回答
  •  一整个雨季
    2020-12-08 04:13

    Yes you can.... you can place something on top of the link element.

    
    
    
        Yes you CAN
        
    
    
    
    
    
    

    the magic sauce happens at product-type-simple:before class Whats happening here is that for each element that has class of product-type-simple you create something that has the width and height equal to that of the product-type-simple , then you increase its z-index to make sure it will place it self on top of the content of product-type-simple. You can toggle the background color if you want to see whats going on.

    here is an example of the code https://jsfiddle.net/92qky63j/

提交回复
热议问题