html技巧

1.不用id关联checkbox

<label>
    <span>复选框</span>
    <input type="checkbox"/>
</label>

不使用id,便可以关联checkbox和前面的文字。点击文字选中复选框。

原文地址:https://www.cnblogs.com/wgl0126/p/9467229.html