Bootstrap 大輸入組


若要在 Bootstrap 中設定大輸入組,請使用 .input-group-lg 類。

你可以嘗試執行以下程式碼來實現 .input-group-lg 類 −

示例

即時演示

<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap Example</title>
      <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
      <script src = "/scripts/jquery.min.js"></script>
      <script src = "/bootstrap/js/bootstrap.min.js"></script>
   </head>
   <body>
      <div class = "container">
         <h1>Search</h1>
         <form>
            <div class = "input-group input-group-lg">
               <input type = "text" class="form-control" placeholder = "Search here...">
                  <div class = "input-group-btn">
                     <button class = "btn btn-primary" type = "submit">
                     </button>
                  </div>
            </div>
         </form>
      </div>
   </body>
</html>

更新於: 2020-06-12

130 次瀏覽

開啟您的 職業生涯

完成課程,取得認證

開始
廣告
© . All rights reserved.