【发布时间】:2014-06-29 01:27:15
【问题描述】:
我正在尝试实现 Footable,这是一个用于使表格响应的 JQuery 插件。 Footable 有一个附加组件来添加分页。 [演示]
和 (http://fooplugins.com/footable/demos/paging.htm) 用于使用分页插件。我尝试按照这个演示进行操作,但我的分页显示为一个垂直的无序列表。按钮功能齐全但不美观。 Here是一个链接图片,因为我的声誉不够高,所以我不能在这里发布。
这是我的表格代码:
<table class="table table-hover" ng-show='form.length>0' data-page-navigation=".pagination">
<thead>
<th ng-repeat="(key, formAttr) in form | orderBy:'attributes.order'" >{{formAttr.attributes.name}}<br/>({{formAttr.type}})</th>
<th>Submission Time</th>
</thead>
<tbody>
<tr ng-repeat="(key, response) in formResponses">
<td ng-repeat="(key, formAttr) in form | orderBy:'attributes.order'">{{$parent.response.results[formAttr.att_id]}}</td>
<td>{{response.submission_time}}</td>
</tr>
</tbody>
<tfoot class="">
<tr>
<td colspan="5">
<div class="pagination pagination-centered"></div>
</td>
</tr>
</tfoot>
</table>
【问题讨论】:
-
您是否包含 footable.core.css ?
-
@Julien 我确实包含了footable.core.css
标签: javascript jquery angularjs pagination footable