我正在使用Materialize,并且试图创建一个包含复选框的表。但是,似乎有问题。表中包含的复选框似乎无效。我不确定这是一个错误还是执行不正确的操作:
<form action="#">
<table>
<thead>
<tr>
<th>Name</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>My Label</td>
<td><input type="checkbox" class="filled-in" /><label></label></td>
</tr>
</tbody>
</table>
</form>
如何使用Materialize制作表格中包含的复选框?
您没有标签id
的复选框和匹配for
属性:
<input type="checkbox" id="myCheckbox" class="filled-in" />
<label for="myCheckbox"></label>
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句