自定义Twitter Bootstrap网格不工作 [英] Customizing Twitter Bootstrap Grid Does not Work
问题描述
我想做一个24列的网格。我计算得出:
I am trying to make a 24 column grid. I calculated this:
网站宽度:997px
Site Width: 997px
列数:24
列宽:31px
沟槽宽度:11px
3.1093279839519%
Fluid Column Width: 3.1093279839519%
流体槽宽度:1.1033099297894%
Fluid Gutter Width: 1.1033099297894%
这应该可以工作,但是当我输入到自定义形式(http://twitter.github.com/bootstrap/download.html)和下载span8是778px当它应该是248px奇怪的是,它仍然上升到span24,所以它是改变...它只是得到它错了。请帮助!
Which should work, but when I input it into the customize form (http://twitter.github.com/bootstrap/download.html) and download span8 is 778px when it should be 248px the weird thing is that it still goes up to span24, so it IS changing... it's just getting it wrong. Please help!
推荐答案
它为我工作
.span8 {
width: 325px;
}
.span24 {
width: 997px;
}
只需检查您是否正在更改正确的字段,清空浏览器缓存,请检查您是否打开了正确的文件,并使用此网址。注意不要被占位符误导。
Just check that you really are changing the right fields, empty your browser cache, check that you are opening the right files and use this url. Be careful not to be misguided by the placeholders.
如果它仍然不工作,可以下载较少的文件,更改变量中的几个变量.less
并自行编译(获取帮助此处或使用 this pastebin )。
If it's still not working, you can download the less files, change the few variables in variables.less
and compile it yourself (get help here or with this pastebin).
这篇关于自定义Twitter Bootstrap网格不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!