使用 Bootstrap 停用按鈕
在 Bootstrap 中使用 .disabled 類以停用按鈕。
你可以嘗試執行下列程式碼以啟用.disabled 類 −
示例
<!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet"> <script src = "/scripts/jquery.min.js"></script> <script src = "/bootstrap/js/bootstrap.min.js"></script> <body> <div class = "container"> <h2>Rank of Cricketers</h2> <p>The following are the rank of cricketers:</p> <button type = "button" class = "btn btn-primary">Enabled</button> <button type = "button" class = "btn btn-primary disabled">Disabled</button> </div> </body> </html>
廣告
資料結構
網路
RDBMS
作業系統
Java
iOS
HTML
CSS
Android
Python
C 程式語言
C++
C#
MongoDB
MySQL
Javascript
PHP