使用 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>

更新于: 12-Jun-2020

1K+ 浏览

开启你的 职业生涯

通过完成课程获得认证

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