用 Bootstrap 新增淡藍色標籤(設定資訊)


在 Bootstrap 中使用 .label-info 類新增淡藍色標籤。

你可以嘗試執行以下程式碼來實現 .label-info

示例

線上示例

<!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">
         <p>Info label</p>
         <span class="label label-info">Information</span>
      </div>
   </body>
</html>

更新於: 12-6-2020

130 次瀏覽

開啟你的職業生涯 生涯

透過完成課程獲得認證

開始
廣告
© . All rights reserved.