Bootstrap 页面标题类


页面标题用于在页面上的标题周围添加适当的间距。

若要使用页面标题,请使用类为 .page-header 的 <<div> 将你的标题包起来 −

示例

实时演示

<!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>

更新时间: 12-6-2020

537 次浏览

开启你的 职业生涯

完成课程获得认证

开始
广告
© . All rights reserved.