Bootstrap中設定小輸入組


要使用Bootstrap設定小輸入組,請使用.input-group-sm類。

您可以嘗試執行以下程式碼來實現.input-group-sm類&minsu;

示例

線上演示

<!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-sm">
               <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年6月12日

325次瀏覽

開啟您的職業生涯

透過完成課程來獲得認證

開始
廣告
© . All rights reserved.