Using decimals in column width for bootstrap
我不知道如何制作这样的引导列:
col-md-4.5 | col-md-7.5
你可以使用媒体查询
就像你可以在屏幕尺寸改变时使用媒体查询
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | /* 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/