借助Bootstrap中的jumbotron类,可以增加标题的大小并增加很多着陆的余量
页面内容。
您可以尝试运行以下代码以在Bootstrap中实现.jumbotron类-
<!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 = "container"> <div class = "jumbotron"> <h1>Welcome to landing page!</h1> <p>Our first page.</p> <p> <a class = "btn btn-primary btn-lg" role = "button">Click for more</a> </p> </div> </div> </body> </html>