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>
广告