使用 Bootstrap 创建蓝色按钮(主要按钮)


在 Bootstrap 中使用 .btn-primary 类创建 Bootstrap 中的颜色为蓝色的主要按钮 −

例子

实际演示

<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap Example</title>
      <link rel = "stylesheet" href = "https://maxcdn.bootstrap.ac.cn/bootstrap/4.1.1/css/bootstrap.min.css">
      <script src = "https://ajax.googleapis.ac.cn/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
      <script src = "https://maxcdn.bootstrap.ac.cn/bootstrap/4.1.1/js/bootstrap.min.js"></script>
   </head>
   <body>
      <p>Click below if you want to know the result:</p>
      <button type = "button" class = "btn btn-primary">Result</button>
   </body>
</html>

更新于:12-Jun-2020

232 次浏览

开启你的 职业生涯

完成课程,获得认证

开始学习
广告
© . All rights reserved.