在 Bootstrap 中建立一個指示正操作的綠色警報框


如需建立指示正操作的綠色警報框,請使用 alert-success 類。

如需實現 alert-success 類,您需要嘗試執行以下程式碼 −

示例

現場演示

<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap Example</title>
      <link rel = "stylesheet" href = "https://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/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/4.1.1/js/bootstrap.min.js"></script>
   </head>
   <body>
      <div class = "alert alert-success">
         <p>Indicates a positive action!</p>
      </div>
   </body>
</html>

更新時間: 2020 年 6 月 12 日

914 次瀏覽

開啟您的 事業

完成課程以獲得認證

開始
廣告