1,前端.input select解决form-contral总是换行问题
尝试了多种方法,终于发现 在外框里加入 form-inline就可完美解决。
|
|
<div class="form-inline col-sm-3"> <input id="investAmount" name="investAmount" class="form-control" required th:field="*{investAmount}" type="text"> <select name="unit" class="form-control" th:field="*{unit}" id="unit" > <option value="万元">万元</option> <option value="亿元">亿元</option> </select> </div> |
row样式
居左(默认) .justify-content-start
居中 .justify-content-center
居右 .justify-content-end
间隔相等(分散) .justify-content-around
两端对齐(分散) .justify-content-between
col列样式
居顶(默认) .align-items-start
居中 .align-items-center
居底 .align-items-end
栅格的列可以排序,使用.order-N,N 最大值为 12;
使用.order-first,强行设置列为第一列,而.order-last 为最后一列;
使用.offset-N 或.offset-*-N 来设置列的偏移量,1 表示一个栅格
使用.ml-N 或.mr-N 来微调列距离,使用.ml-auto 和.mr-auto 来左右
来源:https://www.cnblogs.com/seeding/p/15349229.html
bootstrap table设置列宽:https://blog.csdn.net/weixin_45609759/article/details/107408504
@media screen实现屏幕自适应内容详解:
https://blog.csdn.net/qq_38882327/article/details/90264834
「三年博客,如果觉得我的文章对您有用,请帮助本站成长」
共有 0 - bootstrap 使用