如何在 Bootstrap 中选择 960px 宽而不是 1200px 的容器 [英] How to choose the container 960px wide and not to 1200px in Bootstrap

查看:27
本文介绍了如何在 Bootstrap 中选择 960px 宽而不是 1200px 的容器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 Bootstrap 中选择 960px 宽而不是 1200px 的容器?

How to choose the container 960px wide and not to 1200px in Bootstrap?

推荐答案

你只想要一个固定宽度的网站吗?如果是这样,那么就不要包含 bootstrap-responsive.css.固定宽度容器的默认宽度为 960 像素.

Do you just want a fixed width website? If so then then just don't include bootstrap-responsive.css. The default width for a fixed width container will be 960px.

否则,如果您仍然想要响应式功能但没有 1200px 容器,则需要自定义引导安装.为此:

Otherwise if you still want the responsive features but no 1200px container you will need to customize your bootstrap install. To do that:

这篇关于如何在 Bootstrap 中选择 960px 宽而不是 1200px 的容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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