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