Twitter bootstrap 3响应但应该修复

时间:2013-07-31 20:59:08

标签: twitter-bootstrap twitter-bootstrap-3

我的印象是没有固定的网格系统与新的Twitter Bootstrap 3.我是否正确做出这个假设?我搜索了文档,但我找到的只是响应的新网格系统。我目前正在处理的项目不要求网站做出响应。这里可能有一个简单的解决方案。

3 个答案:

答案 0 :(得分:14)

是的,你是正确的,因为新网格只是流动的。您可以使用这样的包装器创建一个简单的固定布局..

<div class="container-fixed">

.. the usual Bootstrap markup here...

</div>

CSS

.container-fixed {
  margin: 0 auto;
  max-width: 800px;
}

示例:http://bootply.com/71142

Bootstrap 3.1更新

container-fluid已在Bootstrap 3.1中返回.. http://www.bootply.com/121222

答案 1 :(得分:7)

不确定这是否是在原始问题时编写的,但文档提供了有关如何禁用响应的步骤。

http://getbootstrap.com/getting-started/#disable-responsive

答案 2 :(得分:2)

与@ Skelly的答案类似:

/* Reset the container */
.container {
  max-width: none !important;
  width: 970px;
}

Disabling responsiveness

中了解详情

Non-responsive Bootstrap Template