Bootstrap tables overflowing with long unspaced text

前端 未结 5 1245
谎友^
谎友^ 2020-12-23 12:56

I\'m using Bootstrap and I have a table with a few columns, the last of which sometimes has a long piece of text without spaces. I noticed that under certain screen sizes, t

5条回答
  •  被撕碎了的回忆
    2020-12-23 13:35

    .the-table {
        table-layout: fixed;
        word-wrap: break-word;
    }
    

    Deprecated (i.e. word-wrap)

    Add the following styles to your

    .the-table {
        table-layout: fixed;
        over-flow: break-word;
    }
    

    Then you can adjust your layout via-CSS as you wish.

    提交回复
    热议问题