css only checkbox (with content attribute)

前端 未结 4 502
再見小時候
再見小時候 2021-01-20 04:59

how can I make a custom checkbox with css only (no JS no JQ) with content:\"on\" when checked and content:\"off\" when uncheked.

Thanks.

reedit

OK, a

4条回答
  •  醉话见心
    2021-01-20 05:15

    It is possible. Check out these blog posts by Ryan Seddon. He explain how you can play with checkbox and CSS

    http://www.thecssninja.com/css/custom-inputs-using-css

    http://www.thecssninja.com/css/futurebox3

    http://www.thecssninja.com/css/css-tree-menu

提交回复
热议问题