Check box beautification code, checkbox check box beautification
Checkbox check box beautification effect:
The default appearance of the check box is unsatisfactory, which can meet the low aesthetic requirements of the page. However, if the page requirements are more delicate, it may be too reluctant, the following is a code example that beautifies the check box, hoping to help you.
The code example is as follows:
<! DOCTYPE html>
The above Code meets our requirements and beautifies the check box. The following describes the implementation process:
I. Implementation principle:
Checkbox is hidden. Then, use the <label> label to establish a contact with the check box. Click <label> to select and unselect the check box. Then, you can determine the status of the check box, set the <label> background image to achieve the effect.
Ii. Related reading:
1. For details about the change event, see the change event section of jQuery.
2. For information about the is () function, see the is () method in jQuery.
3. For more information about checked, see the checked selector section of jQuery.
4. For more information about the next () function, see the next () method section of jQuery.
5. For the addClass () function, see the addClass () method section of jQuery.
6. For the removeClass () function, see the removeClass () method section of jQuery.
7. For more information about <label> labels, see <label> label 1 in HTML.
The original address is: http://www.softwhy.com/forum.php? Mod = viewthread & tid = 10992.
The original address is: http://www.softwhy.com/