Bootstrap 4: Hidden Visible Cols?

后端 未结 2 1948
生来不讨喜
生来不讨喜 2020-12-05 05:43

I was wondering why the following isn\'t working - whereby xs is hidden in xs views. I feel it is something to do with changes introduced in Bootstrap v4, but I was wonderin

2条回答
  •  情书的邮戳
    2020-12-05 06:33

    EDIT the hidden-* properties are removed from the bootstrap beta 4.

    You need to use the d-*-none (*= xl, sm, md, lg). Link

    For example:

    the class d-none will allow you something to be invisible on every screen.

    the class d-sm-none: will not be visible for small devices.

    the class d-md-none: will not be visbile for medium devices.

    the class d-lg-none: will not be visbile for large screen devices devices.

    For you, need to write this.

    Some text here.

    Start with d-none add the screen that you want with d-*-block. Example if you want to display for md only, you should write class="d-none d-md-block".

提交回复
热议问题