使用橙色加寬 Bootstrap 4 按鈕設定警告動作
使用 btn-outline-warning 類設定 Bootstrap 4 按鈕的橙色輪廓,並表示警告動作。
以下是對按鈕新增橙色輪廓 -
<button type="button" class="btn btn-outline-warning"> Rejected </button>
該類與新增到 Bootstrap 中任何元素中的任何其他類一樣。對於 Bootstrap 按鈕,我使用了 <button> 元素。
你可以嘗試執行以下程式碼來實現 btn-outline-warning 類 -
示例
<!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> <h3>College Placements</h3> <ul class = "list-group"> <li class = "list-group-item">Selected Students</li> <li class = "list-group-item">Rejected Students</li> <li class = "list-group-item">Result Awaited</li> </ul> <p>List of selected and rejected students:</p> <button type="button" class="btn btn-outline-success">Selected</button> <button type="button" class="btn btn-outline-warning">Rejected</button> </body> </html>
廣告
資料結構
網路
RDBMS
作業系統
Java
iOS
HTML
CSS
Android
Python
C 程式設計
C++
C#
MongoDB
MySQL
Javascript
PHP