简体   繁体   中英

Change Bootstrap grid pixels size

I was wondering if there is a way to change the default pixel size allocated for the grid system in Bootstrap. For example xs is used for screens <768px but I would like to change that to be <480 for example. Can this be done? Thank you.

You can customize pretty much everything before you download bootstrap.
Just find the breakpoint you want and change it's value, then download the package!

Alternatively you can download the SASS/LESS version and mess with the variables yourself.

I'd go with the latter if you already work with a preprocessor.

只需在bootstrap.css中搜索

@media (min-width: 768px)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM