获取完整的 Bootstrap Jumbotron 且没有圆角
要获取完整的 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>
Publicités