Why do Twitter Bootstrap tables always have 100% width?

前端 未结 6 555
南方客
南方客 2021-01-29 23:47

Suppose this markup:

No mather how many cells I have, the table is always 100% w

6条回答
  •  梦如初夏
    2021-01-30 00:18

    If you're using Bootstrap 4, use .w-auto.

    See https://getbootstrap.com/docs/4.1/utilities/sizing/

提交回复
热议问题