Bootstrap .btn-primary 類


.btn-primary 類提供額外的視覺權重,並確定一組按鈕中的主操作

示例

線上演示

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

更新於: 12-6 月-2020

346 次瀏覽

啟動你的 職業生涯

透過完成課程獲得認證

開始學習