How to use pure css selector to select hidden element

前端 未结 4 2302
臣服心动
臣服心动 2021-02-18 23:21
AAA
      

I want to u

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-18 23:48

    You can use visibility property but this will reserve the space for text "AAA":

    .col {    
        visibility:hidden;
    }
    
    .clear-icon {
        visibility:visible;
    }
    

    Also, if you can't remove display:block !important; from your td tag just add !important rule in CSS

    .col {
        display:block !important;
        visibility:hidden;
    }
    

提交回复
热议问题