Bootstrap .btn 類


在 Bootstrap 中使用 .btn 類,可在網頁中新增按鈕。

你可以嘗試執行以下程式碼來實現 .btn 類

示例

現場演示

<!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>
      <!-- Standard button -->
      <button type = "button" class = "btn btn-default"> Result</button>
   </body>
</html>

更新於:2020 年 6 月 12 日

342 次瀏覽

啟動你的事業

完成課程獲得認證

開始
廣告
© . All rights reserved.