Laravel 5.2分页:如何减少与桌子的距离

时间:2016-07-07 14:25:32

标签: laravel twitter-bootstrap-3 laravel-5.2 laravel-pagination

我有一个Laravel 5.2应用程序。我使用默认的Laravel分页。所有工作都在功能上,但在表的最后一行和分页链接之间有相当多的空白空间。查看图片示例: enter image description here

如何减少空白空间?

以下是我使用的代码:

<table class="table table-striped table-bordered table-list">
   <thead>
      <tr>
         <th class="hidden-xs">Auction id</th>
         <th>Name</th>
         <th>Description</th>
         <th><em class="fa fa-cog"></em>Actions</th>
      </tr>
   </thead>
   <tbody>
       @foreach( $events as $event )
       <tr>
          <td align="center" class="hidden-xs">{{ $auction->id }}</td>
          <td>{{ $event>name }}</td>
          <td>{{ $event->description }}</td>
          <td align="center">
          <div>
            <a href="{!! route('event_index', ['id' => $event->id ]) !!}" type="button" class="btn btn-sm btn-success"><em class="fa fa-list-alt"></em></a>
           </div>
        </tr>
        @endforeach
    </tbody>
</table>
<div class="text-right">
   {{ $events->render() }}
</div>

1 个答案:

答案 0 :(得分:0)

<div class="text-right">
  <!-- Your pagination code here -->
</div>