开发者

HTML5/CSS3 - Checkbox Image?

I've been everywhere, but no luck.

I have to use a set of checkboxes (that will send false/true value using POST), but I want to use images instead of them.

Is it possible?

Example, trying to change checkbox background (wrong way):

http://js开发者_JAVA百科fiddle.net/hpcQ4/


jQuery UI provides a variety of checkbox styling options. Beyond that there are a variety of jQuery checkbox plugins that can assist you with what you are looking to do.


You don't even need JS for this, as long as you don't mind it not working in IE8 and below (regular checkboxes will show): http://www.thecssninja.com/css/custom-inputs-using-css

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜