1
1
1
1
1
1
1
1
1
1
1
1
4
4
4
4
8
6
6
12

The default grid system provided as part of Bootstrap is a 940px-wide, 12-column grid.

It also has four responsive variations for various devices and resolutions: phone, tablet portrait, table landscape and small desktops, and large widescreen desktops.

<div class="row">
  <div class="span4">...</div>
  <div class="span8">...</div>
</div>

As shown here, a basic layout can be created with two "columns," each spanning a number of the 12 foundational columns we defined as part of our grid system.


Offsetting columns

4
4 offset 4
3 offset 3
3 offset 3
8 offset 4
<div class="row">
  <div class="span4">...</div>
  <div class="span4 offset4">...</div>
</div>

Nesting columns

With the static (non-fluid) grid system in Bootstrap, nesting is easy. To nest your content, just add a new .row and set of .span* columns within an existing .span* column.

Example

Nested rows should include a set of columns that add up to the number of columns of it's parent. For example, two nested .span3 columns should be placed within a .span6.

Level 1 of column
Level 2
Level 2
<div class="row">
  <div class="span12">
    Level 1 of column
    <div class="row">
      <div class="span6">Level 2</div>
      <div class="span6">Level 2</div>
    </div>
  </div>
</div>

Fluid columns

1
1
1
1
1
1
1
1
1
1
1
1
4
4
4
4
8
6
6
12

Percents, not pixels

The fluid grid system uses percents for column widths instead of fixed pixels. It also has the same responsive variations as our fixed grid system, ensuring proper proportions for key screen resolutions and devices.

Fluid rows

Make any row fluid simply by changing .row to .row-fluid. The columns stay the exact same, making it super straightforward to flip between fixed and fluid layouts.

Markup

<div class="row-fluid">
  <div class="span4">...</div>
  <div class="span8">...</div>
</div>

Fluid nesting

Nesting with fluid grids is a bit different: the number of nested columns doesn't need to match the parent. Instead, your columns are reset at each level because each row takes up 100% of the parent column.

Fluid 12
Fluid 6
Fluid 6
<div class="row-fluid">
  <div class="span12">
    Level 1 of column
    <div class="row-fluid">
      <div class="span6">Level 2</div>
      <div class="span6">Level 2</div>
    </div>
  </div>
</div>
Variable Default value Description
@gridColumns 12 Number of columns
@gridColumnWidth 60px Width of each column
@gridGutterWidth 20px Negative space between columns
@siteWidth Computed sum of all columns and gutters Counts number of columns and gutters to set width of the .container-fixed() mixin

Variables in LESS

Built into Bootstrap are a handful of variables for customizing the default 940px grid system, documented above. All variables for the grid are stored in variables.less.

How to customize

Modifying the grid means changing the three @grid* variables and recompiling Bootstrap. Change the grid variables in variables.less and use one of the four ways documented to recompile. If you're adding more columns, be sure to add the CSS for those in grid.less.

Staying responsive

Customization of the grid only works at the default level, the 940px grid. To maintain the responsive aspects of Bootstrap, you'll also have to customize the grids in responsive.less.

Fixed layout

The default and simple 940px-wide, centered layout for just about any website or page provided by a single <div class="container">.

<body>
  <div class="container">
    ...
  </div>
</body>

Fluid layout

<div class="container-fluid"> gives flexible page structure, min- and max-widths, and a left-hand sidebar. It's great for apps and docs.

<div class="container-fluid">
  <div class="row-fluid">
    <div class="span2">
      <!--Sidebar content-->
    </div>
    <div class="span10">
      <!--Body content-->
    </div>
  </div>
</div>

Responsive devices

What they do

Media queries allow for custom CSS based on a number of conditions—ratios, widths, display type, etc—but usually focuses around min-width and max-width.

  • Modify the width of column in our grid
  • Stack elements instead of float wherever necessary
  • Resize headings and text to be more appropriate for devices

Use media queries responsibly and only as a start to your mobile audiences. For larger projects, do consider dedicated code bases and not layers of media queries.

Supported devices

Bootstrap supports a handful of media queries in a single file to help make your projects more appropriate on different devices and screen resolutions. Here's what's included:

Label Layout width Column width Gutter width
Smartphones 480px and below Fluid columns, no fixed widths
Smartphones to tablets 767px and below Fluid columns, no fixed widths
Portrait tablets 768px and above 42px 20px
Default 980px and up 60px 20px
Large display 1200px and up 70px 30px

Requires meta tag

To ensure devices display responsive pages properly, include the viewport meta tag.

<meta name="viewport" content="width=device-width, initial-scale=1.0">

Using the media queries

Bootstrap doesn't automatically include these media queries, but understanding and adding them is very easy and requires minimal setup. You have a few options for including the responsive features of Bootstrap:

  1. Use the compiled responsive version, bootstrap-responsive.css
  2. Add @import "responsive.less" and recompile Bootstrap
  3. Modify and recompile responsive.less as a separate file

Why not just include it? Truth be told, not everything needs to be responsive. Instead of encouraging developers to remove this feature, we figure it best to enable it.

// Landscape phones and down
@media (max-width: 480px) { ... }
// Landscape phone to portrait tablet
@media (max-width: 768px) { ... }
// Portrait tablet to landscape and desktop
@media (min-width: 768px) and (max-width: 980px) { ... }
// Large desktop
@media (min-width: 1200px) { .. }

Responsive utility classes

What are they

For faster mobile-friendly development, use these basic utility classes for showing and hidding content by device.

When to use

Use on a limited basis and avoid creating entirely different versions of the same site. Instead, use them to complement each device's presentation.

For example, you might show a <select> element for nav on mobile layouts, but not on tablets or desktops.

Support classes

Shown here is a table of the classes we support and their effect on a given media query layout (labeled by device). They can be found in responsive.less.

Class Phones 480px and below Tablets 767px and below Desktops 768px and above
.visible-phone Visible
.visible-tablet Visible
.visible-desktop Visible
.hidden-phone Visible Visible
.hidden-tablet Visible Visible
.hidden-desktop Visible Visible

Test case

Resize your browser or load on different devices to test the above clases.

Visible on...

  • Phone✔ Phone
  • Tablet✔ Tablet
  • Desktop✔ Desktop

Hidden on...

  • Phone✔ Phone
  • Tablet✔ Tablet
  • Desktop✔ Desktop
拍av的邪恶漫画图片大全图片大全图片大全图片大全图片大全啪啪漫画医院拍av的邪恶漫画图片大全图片大全图片大全图片欣赏拍av的邪恶漫画图片大全图片搜索排行榜漫画图片拍av的邪恶漫画图片大全图片大全图片大全图片大全图片大全跑女战国行 漫画 下载拍av的邪恶漫画图片大全图片大全图片大全图片欣赏啪啪漫画动作图片叛逆的鲁路修色漫画盘龙邪恶漫画 迅雷下载拍av的邪恶漫画图片大全图片大全图片大全图片大全图片大全胖子侵犯美女邪恶漫画图片盘龙邪恶漫画 迅雷下载拍av的邪恶漫画图片大全图片大全图片大全图片欣赏叛逆的鲁路修色漫画跑女战国行漫画54盘龙 漫画结局盘龙 漫画结局拍av的邪恶漫画图片大全图片大全图片大全图片大全啪啪漫画同人3d盘龙邪恶漫画啪啪动态漫画有声音拍av的邪恶漫画图片大全图片大全图片大全排行榜漫画图片啪啪怕御姐漫画拍av的邪恶漫画图片大全图片搜索拍av的邪恶漫画图片大全图片大全图片拍av的邪恶漫画图片大全图片大全图片大全图片大全咆哮漫画字体下载无端横祸从天而降,机缘巧合之下来到未知的世界,却被不停追杀,为了活下去,斗天魔、斗死灵,魔教的顶尖魔功与异族奇异法术的相互碰撞,看举世无双的天魔策,结合了异族法术后如何纵横异世,大放光彩!瓦伦里安大帝登基后,他希望帝国军民与游骑兵们能和谐地共处,但长时间的仇恨岂能就此罢休?在帝国的人民们相互仇视之时,暗流,开始涌动……白小鱼本是一个平凡的甚至是悲惨的普通人,但自从那个声音出现了,一切就变得不一样......稳坐心理学领域领军交椅的秦尧,在一次犯罪团伙交战中被人开枪打死了,等他再次睁开眼睛时,他竟然成了一国之君,君临天下的他,在面对诡谲波澜的皇权争夺战中,他能否稳操胜券,力挽狂澜稳定朝堂?更有甚者当初开枪打死他的人,竟然成为了外番与之交好的献礼…… 在异能流行的世界中,源明空明明觉醒了异能,成为了1/500的存在,却根本无法使用异能。 直到异能觉醒的5年后,赴约路上的源明空遭遇了一场“主角专供”车祸,并获得了痛苦烙印。从此,他开始使用异能,并和一位总是与他吵吵闹闹的少女一起解决种种问题。开局出生在幽冥血海?还变成了冥河的唯一兄弟? 晓尽天下事的他,怎么可能甘心苟活一世?啊,你说这是巫妖量劫,那没事了! 入量劫?想都别想,这一世就硬苟!稳健人生,苟到天荒地老。 随着稳健的人生展开,天翻地裂的战斗却在洪荒大地上展开。 万物残缺、万道覆灭、世间唯有圣人门徒长存! 而战斗,也波及到了幽冥血海。 那一刻,天地闻之变色,无尽业力涌向洪荒天地,令天外残魂都震动不堪! 陆云景踏步而出,俯瞅诸世。 众人大惊! 竟是……少年血脉被夺,修为尽废,家族中人落井下石。至尊血脉觉醒,神秘小鼎激活,重塑一身体魄,人挡杀人,神挡弑神!修行之路逆水行舟,世间诸事实力为尊,至尊血脉摧枯拉朽!万古独断,独镇深渊,万界无敌,不败神话! 荒凉地脉,大漠无归,我有枪芒镇压。 放眼红尘万丈,无尽归期,我自当君临天下! 生来走一遭,当如何? 自当…成仙之后,君临之后,去那彼岸…逍遥游。 万年前,上古剑仙击败外天逆世异族之主,封印虚空裂痕,后踪迹全无,独留青峰塔于世间; 万年后,无天剑祖因得青峰塔,遭挚亲背叛,身毁魂碎,随青峰塔跌落下界,机缘巧合附于宗门废徒苏煜身上,使他重踏修行之路; 本以为苏煜是天选之子,不料却是天忘之人,但这并不影响苏煜开启无敌征途,执剑踏天!十年前家族被灭,被一小姑娘所救,如今下山却发现那救他的小姑娘竟是林家二小姐,不料却吃了林家闭门羹,还好苏浩有五个师叔! 大师叔:镇北军战神,战力无双! 二师叔:龙国十品相师,精通奇门遁甲! 三师叔:龙国绝品神医,可妙手回春! 四师叔:龙国十大家族之首家主,统领八方! 五师叔:镇龙殿殿主……绝艳动人!
时空行者之死亡烈风 无命:生涯 自由骑士金伟福 绝世阎罗 恶魔城死神的崛起 大齐极品王爷 三界在我手 灵气复苏:从吞噬灵剑开始 僻仙道 仗剑问道 时空迭梦 为师实在是太弱了 我在凡人做选择 器魂大陆1绝神之人 龙凤镇疑云 龙神之争又名龙神重生归来 仙果传 曼珠沙华之昆仑山 追寻山海经 生命永恒的密码 啪啪啪男女漫画 叛逆的鲁路修色漫画 跑女战国行漫画54 盘龙 漫画结局 啪啪啪男女漫画 拍av的邪恶漫画图片大全图片大全 偶像妻子 漫画全集在线观看 胖女人漫画图片 啪啪怕御姐漫画 胖子侵犯美女邪恶漫画图片 啪啪动态漫画有声音 啪啪动态漫画有声音 拍av的邪恶漫画图片大全图片大全图片大全 叛逆的鲁路修色漫画 拍av的邪恶漫画图片大全图片大全图片大全图片大全图片 排行榜漫画图片 偶像强制漫画 啪啪怕御姐漫画 啪啪漫画医院 拍av的邪恶漫画图片大全图片大全图片大全图片大全图片大全 叛逆的鲁鲁修有漫画没 拍av的邪恶漫画图片大全图片大全图片大全图片欣赏 啪啪漫画医院 盘龙邪恶漫画 胖女人漫画图片 拍av的邪恶漫画图片大全图片大全图片大全 啪啪怕御姐漫画 啪啪漫画医院 啪啪漫画同人3d 啪啪怕御姐漫画 盘龙 漫画结局 叛逆的鲁鲁修有漫画没 拍av的邪恶漫画图片大全图片搜索 拍av的邪恶漫画图片大全图片大全图片大全图片大全图片大全 拍av的邪恶漫画图片大全图片大全图片大全 排行榜漫画图片 拍av的邪恶漫画图片大全图片大全图片欣赏 偶像妻子 漫画全集在线观看 拍av的邪恶漫画图片大全图片大全图片大全 拍av的邪恶漫画图片大全图片大全图片欣赏 排行榜漫画图片 胖子侵犯美女邪恶漫画 拍av的邪恶漫画图片大全图片大全图片大全图片大全 偶像强制漫画 盘龙邪恶漫画 迅雷下载 叛逆的鲁鲁修有漫画没 啪啪动态漫画有声音 排行榜漫画图片 拍av的邪恶漫画图片大全图片大全图片大全图片 跑女战国行 漫画 下载 亚星游戏官网 亚星官网 亚星官网 亚星游戏官网 亚星官网 白日列车 天下第一剑修 玄天戟 殖民计划之城市富翁 至幻 亚星游戏官网 万利官网 欧博游戏官网 亚星游戏官网 葡京官网 胖女人漫画图片 叛逆的鲁路修色漫画 拍av的邪恶漫画图片大全图片大全图片 拍av的邪恶漫画图片大全图片大全图片 胖子侵犯美女邪恶漫画图片 咆哮漫画字体下载 叛逆的鲁鲁修有漫画没 胖女人漫画图片 跑女战国行 漫画 下载 偶像妻子 漫画全集在线观看 啪啪漫画医院 拍av的邪恶漫画图片大全图片大全图片欣赏 叛逆的鲁鲁修有漫画没 拍av的邪恶漫画图片大全图片大全图片大全图片 排行榜漫画图片 拍av的邪恶漫画图片大全图片大全 叛逆的鲁路修色漫画 拍av的邪恶漫画图片大全图片大全图片大全图片欣赏 偶像强制漫画 偶像强制漫画 胖子侵犯美女邪恶漫画 胖子侵犯美女邪恶漫画图片 盘龙邪恶漫画 迅雷下载 叛逆的鲁路修色漫画 盘龙 漫画结局 跑女战国行漫画54 啪啪漫画同人3d 拍av的邪恶漫画图片大全图片大全图片大全图片欣赏 盘龙邪恶漫画 迅雷下载 啪啪怕御姐漫画