Missing visible-** and hidden-** in Bootstrap v4

后端 未结 10 2473
小蘑菇
小蘑菇 2020-11-22 06:39

In Bootstrap v3 I often use the hidden-** classes combined with clearfix to control multi column layouts at different screen widths. For example,

I could combine mu

10条回答
  •  滥情空心
    2020-11-22 07:18

    Bootstrap v4.1 uses new classnames for hiding columns on their grid system.

    For hiding columns depending on the screen width, use d-none class or any of the d-{sm,md,lg,xl}-none classes. To show columns on certain screen sizes, combine the above mentioned classes with d-block or d-{sm,md,lg,xl}-block classes.

    Examples are:

    hide on screens wider than lg
    hide on screens smaller than lg

    More of these here.

提交回复
热议问题