bootstrap 4 carousel caption is not visible on small devices

后端 未结 3 2151
灰色年华
灰色年华 2021-02-20 06:44

I was practicing bootstrap 4 carousal example given in http://v4-alpha.getbootstrap.com/examples/ . carousal caption is not visible when testing it for mobile or small screen. A

相关标签:
3条回答
  • 2021-02-20 07:09

    Remove the classes d-none d-md-block from all of the carousel-caption classes, the class d-none gives the caption a display of none and the class d-md-block gives it a display of block for md and above screens.

    Note: you may need to adjust the text size on smaller screens to make everything fit if you have a lot of text in your captions.

    0 讨论(0)
  • 2021-02-20 07:20

    Actually, just removing the class "d-none" will do it for you.

    0 讨论(0)
  • 2021-02-20 07:32

    Here's what you ought to do:

    1. Remove class d-none.
    2. Remove class d-md-block.

    associated with the carousel-caption class of Bootstrap carousel.

    0 讨论(0)
提交回复
热议问题