获取全宽且无圆角的 Bootstrap Jumbotron
bootstraphtmljavascriptjquery
要获取全宽且无圆角的 jumbotron,请在所有 .container 类外部使用 .jumbotron 类,并在其中添加一个 .container。
示例
您可以尝试运行以下代码来实现这一点
<!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet"> <script src = "/scripts/jquery.min.js"></script> <script src = "/bootstrap/js/bootstrap.min.js"></script> </head> <body> <div class = "jumbotron"> <div class = "container"> <h1>Welcome to landing page!</h1> <p>Example for jumbotron.</p> <p> <a class = "btn btn-primary btn-lg" role = "button"> Click for more </a> </p> </div> </div> </body> </html>