在列宽中使用小数来表示引导程序

时间:2016-02-26 06:59:46

标签: twitter-bootstrap-3 grid multiple-columns

我无法弄清楚如何制作这样的引导列:

col-md-4.5 | COL-MD-7.5

1 个答案:

答案 0 :(得分:2)

您可以使用媒体查询

就像你可以在屏幕尺寸改变时使用媒体查询

/* Extra small devices (phones, less than 768px) */
/* No media query since this is the default in Bootstrap */

/* Small devices (tablets, 768px and up) */
@media (min-width: @screen-sm-min) { 
    .your-class1{
         width:37.5%;
     }
    .your-class2{
         width:62.5%;
    } 
}


/* Medium devices (desktops, 992px and up) */
@media (min-width: @screen-md-min) { ... }

/* Large devices (large desktops, 1200px and up) */
@media (min-width: @screen-lg-min) { ... }

请参阅http://getbootstrap.com/css/