使用 Bootstrap 增大段落字体


在 Bootstrap 中使用 .lead 类可增大段落字体。

尝试运行以下代码实施 lead 类 −

示例

实际演示

<!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">
         <h2>Football</h2>
         <h3>FIFA</h3>
         <p>The 2018 FIFA World Cup is the 21st FIFA World Cup.</p>
         <p class = "lead">FIFA, 2018 is going on in Russia.</p>
      </div>
   </body>
</html>

更新于:2020-6-12

1K+ 浏览

开启你的 职业生涯

通过完成课程获得认证

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