Customizing Twitter Bootstrap Grid Does not Work

三世轮回 提交于 2019-12-20 05:57:24

问题


I am trying to make a 24 column grid. I calculated this:

Site Width: 997px

Number of Columns: 24

Column Width: 31px

Gutter Width: 11px

Fluid Column Width: 3.1093279839519%

Fluid Gutter Width: 1.1033099297894%

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!


回答1:


It's working for me

.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.

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).



来源:https://stackoverflow.com/questions/11854808/customizing-twitter-bootstrap-grid-does-not-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!