使用綠色邊框 Bootstrap 4 按鈕設定積極的成功操作


若要為指示成功操作的按鈕設定輪廓,你需要在 Bootstrap 中使用 btn-outline-success 類。

設定方法如下:

<button type="button" class="btn btn-outline-success">
  More (Green Outline)
</button>

你可以嘗試執行以下程式碼來實現 btn-outline-success 類 −

示例

線上演示

<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Bootstrap Example</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/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.0/js/bootstrap.min.js"></script>
  </head>
<body>
  <h2>Python</h2>
  <p>The following are the Python Technologies :</p>
  <ul class = "list-group">
    <li class = "list-group-item">Jython</li>
    <li class = "list-group-item">WxPython</li>
  </ul>
  <p>For more, click below:</p>
  <button type="button" class="btn btn-outline-success">More (Green Outline)</button>
</body>
</html>

更新於: 16-Jun-2020

96 瀏覽

開啟你的職業生涯

透過完成課程獲取認證

開始學習
廣告
© . All rights reserved.