Bootstrap 3:如何将默认网格设置为960px宽度? [英] Bootstrap 3: How to set default grid to 960px width?

查看:196
本文介绍了Bootstrap 3:如何将默认网格设置为960px宽度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Bootstrap 3,客户端希望将网站容器宽度设置为960px.我要直接编辑CSS文件还是最好的方法是什么?我听到一些有关少"的信息.我是否自定义下载?谢谢!

I'm working with Bootstrap 3 and the client wants the website container width to be set to 960px. Do I directly edit the CSS file or what is the best way to do this? I heard something about "Less". Do I customize the download? Thanks!

更新:该站点不需要响应,因此我可以禁用该响应性,仅将960px宽度添加到CSS并完成此操作,否则这会在其他地方引起问题吗?

Update: the site does NOT need to be responsive, so I can disable that responsive-ness and just add the 960px width to the CSS and be done with it or does this cause problems elsewhere?

推荐答案

对于Bootstrap3,您可以对其进行自定义,使其默认情况下为960px( http://getbootstrap.com/customize/)

For Bootstrap3, you can customize it to get 960px by default (http://getbootstrap.com/customize/)

  1. 将@ container-large-desktop从((1140px + @ grid-gutter-width))更改为((940px + @ grid-gutter-width)).
  2. 将@ grid-gutter-width从30px更改为20px.

然后下载您的自定义版本的引导程序并使用它.现在默认情况下应该为960px.

then download your custom version of bootstrap and use it. It should be 960px by default now.

这篇关于Bootstrap 3:如何将默认网格设置为960px宽度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆