0

我有一个Laravel 5.2应用程序。我使用默认的Laravel分页。所有的功能都起作用,但表格的最后一行和分页链接之间有相当多的空白空间。以图片为例: enter image description hereLaravel 5.2分页:如何从表中减少距离

如何让空白空间少一点?

这里是代码我使用:

<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

你能分享一些代码? – ggderas

回答

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

这适用于向右移动,但如何减少最后一行和分页之间的距离。用一些代码更新了原始问题... – wiwa1978

+0

@ wiwa1978我不知道你的申请。查看浏览器的开发人员工具,找出元素具有的边距和填充。 –

+0

这样做告诉我.pagination {display:display:inline-block; padding-left:0; margin:20px 0; border-radius:4px; }但这是在我从CDN获得的bootstrap.css文件中。有没有办法覆盖这个边际值? – wiwa1978