Bootstrap 3 Table inside a panel overflowing

前端 未结 3 1815
忘了有多久
忘了有多久 2021-02-02 08:22
 
Recently Filtered
相关标签:
3条回答
  • 2021-02-02 08:44

    You could always add .table-responsive class to the table to get it scroll horizontally. Example:

    <div class="table-responsive">
        <table class="table table-striped">
            ...
        </table>
    </div>
    

    If that isn't what you're wanting, you'll need to lower the font size to make it fit better.

    0 讨论(0)
  • 2021-02-02 08:51

    it appears to only happen when the viewport has responded down to mobile sizes. The easiest fix is to add overflow rule.

    .panel {
        overflow: auto;
    }
    

    you could also change font sizes or remove unneeded table cells. You could also abbreviate

    • ID
    • Temp
    • V
    • Date
    0 讨论(0)
  • 2021-02-02 08:51

    Just an idea, you tryed to add a div with class panel-body around the table?

    0 讨论(0)
提交回复
热议问题