使用綠色邊框的 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>
Advertisement
資料結構
網路
RDBMS
作業系統
Java
iOS
HTML
CSS
Android
Python
C 程式設計
C++
C#
MongoDB
MySQL
Javascript
PHP