在 Bootstrap 中添加蓝色背景色来模拟按下按钮
若要添加蓝色背景色来模拟按下按钮,请使用 Bootstrap 中的主要按钮,如下面的代码所示 −
示例
<!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> </head> <body> <div class = "container"> <h2>Score</h2> <button type = "button" class = "btn btn-primary">Result (2018)</button> <button type = "button" class = "btn btn-primary disabled">Result (2017)</button> </div> </body> </html>
广告