bootstrap 4 carousel caption is not visible on small devices

后端 未结 3 2152
灰色年华
灰色年华 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.

提交回复
热议问题