开发者

HTML: How to cross check HTML Check Box

Is it possiible to cross开发者_JAVA技巧 check HTML checkbox?

Thanks Sohail


I assume you want to change the way a checkbox looks when it is checked.

That is not possible using HTML's native <input type="checkbox"> controls: They are rendered by the browser, and usually in the style the Operating System renders check boxes.

You would have to use a JavaScript checkbox component that allows you to use custom bitmaps. One example is the jQuery checkbox plugin.

Whether adding all this code for this minimal effect is worth the effort, you need to decide for yourself. In my opinion, it is usually not worth it and sticking to the normal controls is better.


While standard checkbox look could be personalized you might need to implement a custom checkbox to achieve the desired effect.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜