【发布时间】:2015-11-04 13:34:07
【问题描述】:
我正在使用带有 Admin LTE 模板的复选框的 iCheck(v1.0.2) jquery 插件。
iCheck 除了引导表之外工作正常。在 chrome 开发人员工具中检查元素时,我可以在 <td> 中找到由插件创建的 div,但它不可见。
这里是html
<div class="table-responsive">
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Functionality</th>
<th>View</th>
<th>Add</th>
<th>Edit</th>
<th>Delete</th>
</tr>
</thead>
<tbody>
<tr>
<td>New Function</td>
<td><input type="checkbox" class="icheck"></td>
<td><input type="checkbox" class="icheck"></td>
<td><input type="checkbox" class="icheck"></td>
<td><input type="checkbox" class="icheck"></td>
</tr>
</tbody>
</table>
</div>
jquery:
<script>
$(function () {
$('.icheck').iCheck();
});
</script>
开发者工具:
不要考虑控制台错误。这是关于favicon.ico。我该如何解决这个问题?
【问题讨论】:
-
请分享您的实时链接。
-
抱歉。它没有托管。正在本地主机上处理它。
-
JS有没有报错?
-
JS 中没有错误,并且在源选项卡中可以看到必要的文件。
标签: jquery html twitter-bootstrap-3 html-table icheck