Add strikethrough to checked checkbox

后端 未结 6 1048
时光说笑
时光说笑 2021-02-13 23:57

I am trying to add strikethrough when i select a checkbox in my form (Bootstrap v3). I coded this bootply:

6条回答
  •  灰色年华
    2021-02-14 00:08

    This worked for me.

    li.my-item:hover span { visibility: visible; }
    li.my-item span { visibility:hidden; }
    

提交回复
热议问题