Bootstrap 元素


Bootstrap 中的 <small> 元素用於設定行內副標題。

你可以嘗試執行以下程式碼來實現 <small> 元素

範例

線上演示

<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap small element</title>
      <meta name = "viewport" content = "width = device-width, initial-scale = 1">
      <link rel = "stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
      <script src = "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
      <script src = "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
   </head>
   <body>
      <h1>Heading One
         <small>I'm secondary Heading</small>
      </h1>
      <h2>Heading One
         <small>I'm secondary Heading</small>
      </h2>
   </body>
</html>

更新於: 12-Jun-2020

199 次瀏覽

開啟您的職業生涯

完成課程以獲得認證

開始
廣告
© . All rights reserved.