用 Bootstrap 新增紅色標籤


在 Bootstrap 中使用 .label-danger 類來新增紅顏色標籤。

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

示例

動態示例

<!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>If you find any issues, click below</p>
         <span class = "label label-danger">Danger</span>
      </div>
   </body>
</html>

更新日期:2020 年 6 月 12 日

465 次瀏覽

開啟你的 職業生涯

完成課程認證

開始
廣告
© . All rights reserved.