Bootstrap page-header 类


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

要使用页面标题,请将标题用 <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>

更新时间: 2020 年 6 月 12 日

537 次浏览

开启你的 职业生涯

完成课程即可获得认证

开始学习
广告
© . All rights reserved.