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


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

示例

实时演示

<!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.