Bootstrap table without stripe / borders

后端 未结 16 867
天命终不由人
天命终不由人 2020-12-12 11:54

I\'m kinda stuck with a CSS problem while using Bootstrap. I\'m also using Angular JS with Angular UI.bootstrap (which might be part of the problem).

I\'m making a w

相关标签:
16条回答
  • 2020-12-12 11:57

    This one worked for me.

    <td style="border-top: none;">;
    

    The key is you need to add border-top to the <td>

    0 讨论(0)
  • 2020-12-12 11:58

    similar to the rest, but more specific:

        table.borderless td,table.borderless th{
         border: none !important;
    }
    
    0 讨论(0)
  • 2020-12-12 12:03

    Since Bootstrap v4.1 you can add table-borderless to your table, see official documentation:

    <table class='table table-borderless'>
    
    0 讨论(0)
  • 2020-12-12 12:06

    Install bootstrap either with npm or cdn link

    <table class="table table-borderless">
    <thead>
    <tr>
      <th scope="col">#</th>
      <th scope="col">First</th>
      <th scope="col">Last</th>
      <th scope="col">Handle</th>
    </tr>
    </thead>
    <tbody>
    <tr>
      <th scope="row">1</th>
      <td>Mark</td>
      <td>Otto</td>
      <td>@mdo</td>
    </tr>
    <tr>
      <th scope="row">2</th>
      <td>Jacob</td>
      <td>Thornton</td>
      <td>@fat</td>
      </tr>
      <tr>
      <th scope="row">3</th>
        <td colspan="2">Larry the Bird</td>
        <td>@twitter</td>
       </tr>
     </tbody>
    </table>
    

    get the reference with this link

    0 讨论(0)
  • 2020-12-12 12:09

    Don’t add the .table class to your <table> tag. From the Bootstrap docs on tables:

    For basic styling—light padding and only horizontal dividers—add the base class .table to any <table>. It may seem super redundant, but given the widespread use of tables for other plugins like calendars and date pickers, we've opted to isolate our custom table styles.

    0 讨论(0)
  • 2020-12-12 12:10

    Use hidden instead of none:

    .hide-bottom {
        border-bottom-style: hidden;
    }
    
    0 讨论(0)
提交回复
热议问题