如何创建6个复选框,如下所示?我知道如何隐藏复选框,但我怎么能这样才能点击文本?在html中创建6个复选框
<tr>
<td class = "first">Select Folder(s)</td>
<td class = "second">
<input id="hw" type="checkbox">hw1
<input id="hw" type="checkbox">hw2
<input id="hw" type="checkbox">hw3
<input id="hw" type="checkbox">hw4
<input id="hw" type="checkbox">hw5
<input id="hw" type="checkbox">hw6
</td>
它应该是这样的:
选择Foler | (hw1)(hw2).....
和hw复选框应该是可点击的,我需要能够选择多个。
将输入和文本包装在标签元素中。 – j08691 2014-11-03 02:06:24
我认为您正在寻找可以将文本与输入相关联的'
你正在寻找可怜的可用性。如果您隐藏复选框,则用户看不到他所选的内容。如果你打算在CSS中解决这个问题,你应该显示CSS代码,因为它实质上会影响问题。 – 2014-11-03 06:02:38