本文介绍了Bootstrap 100%宽度/全宽的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Bootstrap创建一个新网站,我需要它的宽度为100%,但我不想让它流畅。至少不是现在。

I want to create a new website with Bootstrap and I need it to be 100% in width, but I do not want it to be fluid. At least not for now.

我遇到的问题是:使用bootstrap标准限制你到960px和流体布局它是全宽,但表现得像流体布局应该

The issue I have is: using bootstrap standard limits you to 960px and with a fluid layout it is full width but behaves like a fluid layout should by moving elements to become stacked when the window is shrunk in size.

有一种方法可以使用静态引导布局获得100%的宽度?

Is there a way to have 100% width with a static bootstrap layout?

推荐答案


b $ b

这是一个矛盾。 100%宽度的布局不是静态的。

This is a bit of an oxymoron. A 100% width layout isn't static.

Bootstrap使用 .container 类设置预定义的宽度。如果您希望它大于默认值,请将其增加到所需的页面宽度。请注意,Bootstrap的 span * offset * 类的大小将需要相应调整宽度。

Bootstrap uses a .container class to set a predefined width. Increase this to your desired page width if you want it to be greater than it's default. Be careful though that the sizing of Bootstrap's span* and offset* classes will need their widths adjusted accordingly.

这篇关于Bootstrap 100%宽度/全宽的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-31 03:58