Bootstrap 主導類


Bootstrap 中的 lead 類用於為段落新增重點。

您可以嘗試執行以下程式碼以在 Bootstrap 中實現 lead 類 −

示例

 真實演示

<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap lead class</title>
      <meta name = "viewport" content = "width = device-width, initial-scale = 1">
      <link rel = "stylesheet" href = "https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css">
      <script src = "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
      <script src = "https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
   </head>
   <body>
      <h2>Lead Example</h2>
      <p class = "lead">This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is an example paragraph demonstrating the use of lead body copy.
      </p>
   </body>
</html>

更新於: 2020-06-12

2K+ 瀏覽

啟動你的 職業生涯

完成課程即可獲得認證

開始吧
廣告
© . All rights reserved.