Table overflowing outside of div

后端 未结 9 2094
鱼传尺愫
鱼传尺愫 2020-11-30 00:17

I\'m trying to stop a table that has width explicitly declared from overflowing outside of its parent div. I presume I can do this in some way using max-w

9条回答
  •  囚心锁ツ
    2020-11-30 00:38

    I tried all the solutions mentioned above, then did not work. I have 3 tables one below the other. The last one over flowed. I fixed it using:

    /* Grid Definition */
    table {
        word-break: break-word;
    }
    

    For IE11 in edge mode, you need to set this to word-break:break-all

提交回复
热议问题