为了扩展@isherwood的答案,这是
-sm-在Bootstrap 3.3中创建自定义宽度的完整代码
通常,您要搜索现有的列宽(例如
col-sm-3),然后将适用于它的所有样式(包括通用样式)复制到您定义新列宽的自定义样式表中。
.col-sm-3half, .col-sm-8half { position: relative; min-height: 1px; padding-right: 15px; padding-left: 15px;}@media (min-width: 768px) { .col-sm-3half, .col-sm-8half { float: left; } .col-sm-3half { width: 29.16666667%; } .col-sm-8half { width: 70.83333333%; }}


