Bootstrap 按鈕組中的主要操作


.btn-primary 類提供額外的視覺效果,並在按鈕組中識別主要操作。要設定 Bootstrap 按鈕的主要操作,可以嘗試執行以下程式碼 −

示例

現場演示

<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap Example</title>
      <meta name = "viewport" content = "width=device-width, initial-scale = 1">
      <link rel = "stylesheet" href = "https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css">
      <script src = "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
      <script src = "https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
   </head>
   <body>
      <button type = "button" class = "btn btn-primary">Primary Button</button>
   </body>
</html>

更新於: 2020-06-12

234 次瀏覽

開啟您的職業

完成課程即可獲得認證

開始學習
廣告
© . All rights reserved.