Responsive table handling in Twitter Bootstrap

后端 未结 4 688
你的背包
你的背包 2020-12-02 09:36

When a table\'s width exceed the span\'s width, like this page: http://jsfiddle.net/rcHdC/

You will see the table\'s content is outside of the span.

4条回答
  •  天命终不由人
    2020-12-02 10:23

    Bootstrap 3 now has Responsive tables out of the box. Hooray! :)

    You can check it here: https://getbootstrap.com/docs/3.3/css/#tables-responsive

    Add a

    surrounding your table and you should be good to go:

    ...

    To make it work on all layouts you can do this:

    .table-responsive
    {
        overflow-x: auto;
    }
    

提交回复
热议问题