Bootstrap 標籤類的使用


Bootstrap 標籤類用於新增標籤,例如提示、數量等。

讓我們看一個實現標籤類的示例

示例

線上演示

<!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>
      <h1>Tools
         <span class = "label label-default">
            40
         </span>
      </h1>
      <h2>QA
         <span class = "label label-default">
            1000
         </span>
      </h2>
   </body>
</html>

更新於: 2020 年 6 月 12 日

208 次瀏覽

開啟 職業生涯

透過完成課程獲得認證

開始
廣告
© . All rights reserved.