引导程序类 input-group-sm
要创建小型输入组,请使用 input-group-sm。
你可以尝试运行以下代码,在 Bootstrap 中实现 input-group-sm 类 −
示例
<!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 style = "padding: 100px 100px 10px; background: blue;"> <form class = "bs-example bs-example-form" role = "form"> <div class = "input-group input-group-sm"> <span class = "input-group-addon">$</span> <input type = "text" class = "form-control"> </div> </form> </div> </body> </html>
广告