bootstrap responsive table content wrapping

前端 未结 10 1786
南旧
南旧 2020-12-24 11:10

I have HTML similar to this:

    
10条回答
  •  长发绾君心
    2020-12-24 11:50

    I ran across the same issue you did but the above answers did not solve my issue. The only way I was able to resolve it - was to make a class and use specific widths to trigger the wrapping for my specific use case. As an example, I provided a snippet below - but I found you will need to adjust it for the table in question - since I typically use multiple colspans depending on the layout. The reasoning I believe Bootstrap is failing - is because it removes the wrapping constraints to get a full table for the scrollbars. THe colspan must be tripping it up.