用紅色輪廓的 Bootstrap 4 按鈕表示危險
在 Bootsrap 4 中使用 btn-outline-danger 類來用紅色輪廓的按鈕表示危險。
以下是一個示例,用於設定一個用紅色輪廓表示危險的按鈕 −
<button type="button" class="btn btn-outline-danger"> Danger </button>
該類是使用 Bootstrap 中的 btn 和 btn-outline-danger 類新增的 −
class="btn btn-outline-danger”
讓我們看一個示例來實現 btn-outline-danger 類 −
示例
<!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>Animals</h2> <p>Animals are in danger. To know what, you need to click below:</p> <button type="button" class="btn btn-outline-danger">Danger</button> </body> </html>
廣告
資料結構
網路
RDBMS
作業系統
Java
iOS
HTML
CSS
Android
Python
C 程式設計
C++
C#
MongoDB
MySQL
Javascript
PHP