Bootstarp 徽章


徽章與標籤類似;主要區別是徽章的圓角更多。 

要使用徽章,只需將 <span class = "badge"> 新增到連結、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>
      <a href = "#">Mailbox <span class = "badge">50</span></a>
   </body>
</html>

更新於: 12-Jun-2020

81 次瀏覽

開啟你的 事業

完成課程,獲得認證

開始
廣告
© . All rights reserved.