我表中的空行

时间:2014-08-08 21:55:41

标签: html css ruby-on-rails twitter-bootstrap html-table

我修改了下面的代码有很多种方法,但不知怎的,一个额外的空行总是出现在表的末尾。我的逻辑出了什么问题?

   <% if !@inviteList.empty? %>
     <table class="table table-condensed table-bordered">
       <tr style="color:white; background-color:teal">
         <th> Dated </th>
         <th> Email </th>
         <th> Acceptance </th>
       </tr>
       <% @inviteList.each do |f| %>
         <tr>
           <td> <%= f.created_at %> </td> 
           <td><%= f.email %> </td>
           <td> <%= link_to 'Yes', '#', class: "label label-info" %>  </td>
         </tr>
       <%end%>
     </table>
   <%else%>
     <h5 style="text-align:center"> No Invites </h5>
   <%end%>

0 个答案:

没有答案
相关问题