Is the :before pseudo-element allowed on an input[type=checkbox]?

后端 未结 3 672
再見小時候
再見小時候 2020-11-28 15:53

This StackOverflow answer describes how to style checkboxes using CSS3 without requiring a :

input[type=checkbox]:before {
    cont         


        
3条回答
  •  自闭症患者
    2020-11-28 16:16

    Yes, absolutely you can use that pseudo class e.g: let's give the position of

    "input[type="checkbox"]" be relative and the position of the

    "input[type="checkbox"]:before" be absolute.

    TRY THIS, it will work in chrome but not in firefox.

提交回复
热议问题