Making wide table fit bootstrap container

前端 未结 5 1766
情深已故
情深已故 2020-12-14 05:44

I have a table like so:




    

         


        
5条回答
  •  孤城傲影
    2020-12-14 06:18

    Try applying class="row" for the elements.

    Use rows to create horizontal groups of columns. Content should be placed within columns, and only columns may be immediate children of rows.

    -- Bootstrap css docs

    note that Rows must be placed within a .container (fixed-width) or .container-fluid (full-width) for proper alignment and padding, so you might want to apply class=container-fluid for the table or a parent of it.

提交回复
热议问题