页面标题用于在页面标题周围添加适当的间距。
要使用页面页眉,请将您的标题包裹在<div>中,并带有.page-header类-
<!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 = "page-header"> <h1> Header <small>Subtext for header</small> </h1> </div> <p>Demo text! Demo text! Demo text! Demo text! Demo text! Demo text! Demo text! Demo text! Demo text! </p> </body> </html>