如何使用16或24列的引导程序 [英] How to use bootstrap with 16 or 24 columns
问题描述
我需要一些帮助将bootstrap 2.0.4设置为16或24列,而不是默认的12列,我不明白我在做什么错,我在bootstrap网站上尝试了customize选项,并尝试更改了网格变量在variables.less文件中并使用Crunch重新编译bootstrap.less,但对于两次试用,我仍然具有相同的结果.它仍然是12列!当我尝试将div设置为span12时,仍然需要整个屏幕?
I need some help setting bootstrap 2.0.4 to be 16 or 24 column instead of the default 12 columns i can't understand what am i doing wrong i tried the customize option on the bootstrap site and i tried changing the grid variables in the variables.less file and recompile bootstrap.less using Crunch but for both trials i still have the same result .it is still 12 columns !!! when i try to set a div to be span12 it still takes the whole screen ?
任何人都可以指导我做错什么,或者有人可以生成16列和24列的版本并将其发送给我,那将是完美的
Can anyone guide me to what's wrong i am doing or if someone can generate a 16 and 24 columns versions and send them to me that would be perfect
推荐答案
此方法适用于较旧版本的Bootstrap-版本2.3.1
This method is for an older version of Bootstrap - Version 2.3.1
单击此链接来自定义引导程序: http://twitter.github.com/bootstrap/customize .html
Click this link to customize bootstrap: http://twitter.github.com/bootstrap/customize.html
您将找到诸如此类的示例.更改参数以适合您的需求.
You will find examples such as this. Change the parameters to fit your needs.
16 Grid system with Gutter
@gridColumns: 16
@gridColumnWidth: 45px
@gridGutterWidth: 15px
@gridColumnWidth1200: 52.5px
@gridGutterWidth1200: 22.5px
@gridColumnWidth768: 31.5px
@gridGutterWidth768: 15px
16 Grid system without Gutter
@gridColumns: 16
@gridColumnWidth: 60px
@gridGutterWidth: 0px
@gridColumnWidth1200: 75px
@gridGutterWidth1200: 0px
@gridColumnWidth768: 46.5px
@gridGutterWidth768: 0px
24 Grid system with Gutter
@gridColumns: 24
@gridColumnWidth: 30px
@gridGutterWidth: 1px
@gridColumnWidth1200: 35px
@gridGutterWidth1200: 15px
@gridColumnWidth768: 21px
@gridGutterWidth768: 10px
24 Grid system without Gutter
@gridColumns: 24
@gridColumnWidth: 40px
@gridGutterWidth: 0px
@gridColumnWidth1200: 50px
@gridGutterWidth1200: 0px
@gridColumnWidth768: 31px
@gridGutterWidth768: 0px
这篇关于如何使用16或24列的引导程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!