如何交叉检查HTML复选框

如何交叉检查HTML复选框

本文介绍了HTML:如何交叉检查HTML复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

感谢
Sohail

解决方案

我假设你想改变复选框在检查时的样子。



这不可能使用HTML的本地< input type =checkbox> controls:它们由浏览器呈现,通常以操作系统呈现复选框的样式呈现。



您必须使用允许使用自定义位图的JavaScript复选框组件。一个例子是。



无论为这个最小的效果添加所有这些代码是值得的,你需要自己决定。在我看来,这通常是不值得的,坚持正常控制更好。

Is it possiible to cross check HTML checkbox?

ThanksSohail

解决方案

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.

这篇关于HTML:如何交叉检查HTML复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 13:59