bootstrap中如何设置表单的宽高

互联网 19-7-27

您可以分别使用 class .input-lg 和 .col-lg-* 来设置表单的高度和宽度。

下面的实例演示了这点:

<form role="form">   <div class="form-group">     <input class="form-control input-lg" type="text" placeholder=".input-lg">   </div>   <div class="form-group">     <input class="form-control" type="text" placeholder="默认输入">   </div>   <div class="form-group">     <input class="form-control input-sm" type="text" placeholder=".input-sm">   </div>   <div class="form-group"></div>   <div class="form-group">     <select class="form-control input-lg">       <option value="">.input-lg</option>     </select>   </div>   <div class="form-group">     <select class="form-control">       <option value="">默认选择</option>     </select>   </div>   <div class="form-group">     <select class="form-control input-sm">       <option value="">.input-sm</option>     </select>   </div>   <div class="row">     <div class="col-lg-2">       <input type="text" class="form-control" placeholder=".col-lg-2">     </div>     <div class="col-lg-3">       <input type="text" class="form-control" placeholder=".col-lg-3">     </div>     <div class="col-lg-4">       <input type="text" class="form-control" placeholder=".col-lg-4">     </div>   </div></form>

推荐:bootstrap入门教程

以上就是bootstrap中如何设置表单的宽高的详细内容,更多内容请关注技术你好其它相关文章!

来源链接:
免责声明:
1.资讯内容不构成投资建议,投资者应独立决策并自行承担风险
2.本文版权归属原作所有,仅代表作者本人观点,不代表本站的观点或立场
标签: 表单
上一篇:php获取远程图片并下载保存到本地的方法分析 下一篇:bootstrap如何设置响应式表格

相关资讯