How to create jumbotron in Bootstrap 5?
问题 In Bootstrap 5 the jumbotron component is removed in favor of utility classes like .bg-light for the background color and .p-* classes to control padding. I'm a newbie, can somebody give example of how to do that? 回答1: The migration documents give you exactly what you need to know. In v4.x Bootstrap's .jumbotron component is literally just this: .jumbotron { padding: 2rem 1rem; margin-bottom: 2rem; background-color: #e9ecef; border-radius: .3rem; } You can, with the exception of the specific