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 in Bootstrap utilizes 12 columns that render out at widths of 724px, 940px (default without responsive CSS included), and 1170px. Below 767px viewports, the columns become fluid and stack vertically.

<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

p>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="span6">
        Level 1 column
        <div class="row">
            <div class="span3">Level 2</div>
            <div class="span3">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>

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>

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: 767px) { ... }
  /* Portrait tablet to landscape and desktop */
  @media (min-width: 768px) and (max-width: 979px) { ... }
  /* 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 hiding 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
百度外卖宜昌联系电话去游未来电话咨询咸阳空港温泉酒店电话是多少金峰小区南院物业电话是多少钱黔西县行政中心220电话百度外卖宜昌联系电话大连情缘米线电话咸阳空港温泉酒店电话是多少西安到云南电话璞里春天酒店电话吐鲁番名加会所电话咸阳空港温泉酒店电话是多少荥阳熊猫火锅电话吐鲁番名加会所电话洛阳到石家庄大巴电话多少时间璞里春天酒店电话应县车管所固定电话垫江汽车客运中心电话垫江汽车客运中心电话东方航空货运部电话美国用中国电话卡垫江汽车客运中心电话西安到云南电话什么是美国原生电话卡济南高铁拼车电话号码佛山汽车主题酒店电话济南高铁拼车电话号码什么是美国原生电话卡东方航空货运部电话荥阳熊猫火锅电话在空灵大陆上,修为决定着每个人的命运。大陆上,人的修为分为融体境,坚身境,铸心境,幻灵境,天元境,破玉境,芥子境,真元境,虚仙境,天神境,能登上天神境的强者少之又少,男主元翼在磨难中一步一步成长,在他向往的世界里,爱过,失去过,被人背叛过,终成一代强者。法斯特从霍格沃兹毕业后与自己的好友鲍克斯、兰一起探险魔法世界。当一行三人探索魔法古墓时,兰受到了护陵诅咒。这种诅咒非常残忍,当被诅咒人三十岁时就会自燃化为灰烬。鲍克斯和法斯特走遍大街小巷,黑林深处却都无功而返,唯有求助魔法部的帮助,故事便从这里开始……大明末年,江湖上魔踪频现,其中以魔女孙晓琦最为狠辣。江湖各大门派纠结派中好手展开一场正邪对立之战。 大战之中,人心叵测,正邪双方死伤惨重一颗天地初开时,第一缕鸿蒙紫气孕育的神秘源种。 一部被尊为万法之源,大道之纲的逆天功法。 一把替天罚神、屠戮万界神魔的残破古剑。 一个死而复生,天资妖孽的热血少年。 一段逆天改命,横扫万界天骄,镇压亿万神魔的狂暴之旅。 我名楚天辰,这是我的传奇,我为众神之主!云飞帆有点发懵。   他努力回想刚刚发生的一切,想到脑袋疼,也想不出所以然来。闭上眼睛,脑海里竟然有一部豪华精装的经书。 ———《逍遥心经》。 右手掌心微微发热,掌心之上,一道鱼形红芒若隐若现。 红芒生,黑芒死!   我是在做梦么?   或者,已经死了,然后重生到异界,所以自己身上有这些神奇的变异?尘寰外,碧海中,桃花之间桃花岛。秋风起,海波兴,几度潮来听玉箫。且看东邪黄药师传人,如何纵横都市。满天神佛朝我跪拜,天下美女唯我独揽!已完本,放心阅读。超凡与科技的碰撞,世界正在滑向未知的领域 诡异在呓语,恶神投来了觊觎的目光 有人甘愿献出一切 用生命换来黎明的曙光 这些黑暗中的先行者被称作守夜人 时隔七年,旧日再临 当林深付出一切,斩向那所谓神灵 世界的真实显现在他的眼中 两个宇宙的交汇,一场前所未有的大世 异界之旅?得窥大道? 一切的一切指向终焉 真正的漫漫长夜将临 是否能博得破晓黎明?九荒世界百族林立,上古时期人族、海族、修罗族、魔族、妖族、鬼族等强大种族为争夺天地第一神器无量芥子天庭爆发大战,使得各族元气大伤,百族不得不归隐。拥有混沌圣体的帝天羽无意间得到天庭,从此开始了他的征伐九荒、战百族之途。平八荒、征魔族,立天庭、建地狱、控六道轮回 ,封神碑分封诸神,成为万族共尊的天帝。 天庭势力组成:九阁十八殿三十六宫七十二部。 天罚阁,直隶于帝天羽。 天策阁,智囊谋士。 药阁,掌管天庭神药天,主要职责炼丹、炼药、治伤、培育神药神草。 器阁,掌管天庭神器天,主要负责炼器、开矿。 武阁,天庭主要武力部门,分为金木水火土等部。 天机阁,情报机构,分为天罗地网两大机构。 天杀阁:刺杀机构。 天政阁,负责天庭内政。 天兵阁,掌管天庭军队。十万孤山中有座太渊峰,太渊峰上有个御兽宗。 在这里,山海经中的各种妖兽齐出,漫天飞禽翱翔于九霄之上,上古遗种疾啸于草野之间, 在这里,凶猛的穷奇是看门狗;在这里,高傲的血凤是起床铃。 某天,陈远航走出房门,望着空中遮天蔽日的山海经异兽,怒吼:“快让开,你们拦着我晒太阳了!” 半晌,见还是一缕阳光未落,陈远航正要发火,这时,上空传来大徒弟的喊声:“师尊,等会儿!堵住了!挪不动!” 又某日,弟子来报:“宗主,九品百虎王跪拜山门,求宗主帮他的御兽进化!” 片刻后,又弟子又报:“报!宗主,那瑶池圣女依旧不愿离去,死皮赖脸求宗主帮其强化血脉!” 不日,海域皇者求见,哭腔道:“求宗主帮吾幼儿化龙!”带着疲惫的身心和仿佛燃尽的灵魂,苍浩回到了家乡,成了地产公司的普通员工,却惊讶的发现上司是自己的青梅竹马……都市商场,杀机陡现,神秘敌人暗中潜伏,且看苍浩如何突出重围。这不是最美好的世界,但这是一部热血逆袭,用双手创造一个理想年代。
末路狂谍 界脉天 我,魔教教主,开局镇压圣女 上仙武乘风 异能:我从天界下凡来打工 傲娇:我契约一只半圣龙 我只想平平淡淡过生活 小李飞刀之鬼见愁 将乡 天上掉下个颜小咩 原谅我堕落 刀问三十三 俗世仙山 具像者们 前世曝光:我九世英烈,看哭全网 我变成了鬼! 古老之风云再起 寒城少主 凡生世界 救世法师 烟台黄务定奶电话 麦波蛋糕电话 应县车管所固定电话 黔西县行政中心220电话 烟台黄务定奶电话 日本公共电话 应县车管所固定电话 澄海华荣西饼公司电话 佛山汽车主题酒店电话 妈妈菜馆新乡电话 营口到沈阳大客电话号码 营口到沈阳大客电话号码 616总站电话 麦波蛋糕电话 百度外卖宜昌联系电话 黔西县行政中心220电话 中山实验高中电话号码 佛山汽车主题酒店电话 花都购书中心电话 咸阳空港温泉酒店电话是多少 麦波蛋糕电话 洛阳到石家庄大巴电话多少时间 去游未来电话咨询 吐鲁番名加会所电话 璞里春天酒店电话 616总站电话 佛山汽车主题酒店电话 去游未来电话咨询 花都购书中心电话 佛山汽车主题酒店电话 黔西县行政中心220电话 合肥南站到芜湖的动车时刻表查询电话 金峰小区南院物业电话是多少钱 百度外卖宜昌联系电话 什么是美国原生电话卡 黔西县行政中心220电话 金峰小区南院物业电话是多少钱 应县车管所固定电话 616总站电话 洛阳到石家庄大巴电话多少时间 济南高铁拼车电话号码 妈妈菜馆新乡电话 北海到珠海大巴车电话号码 中山实验高中电话号码 吐鲁番名加会所电话 麦波蛋糕电话 营口到沈阳大客电话号码 济南高铁拼车电话号码 616总站电话 大连情缘米线电话 亚星官网 亚星官网 亚星官网 亚星官网 亚星游戏官网 网游使徒 1910:重回乱世做英豪 游乐园:人在前面飞,魂在后面追 你的太阳系 类地行星468号 亚星管理平台 澳门葡京官网 葡京官网 亚星管理平台 万利游戏官网 澄海华荣西饼公司电话 吐鲁番名加会所电话 合肥南站到芜湖的动车时刻表查询电话 荥阳熊猫火锅电话 大连情缘米线电话 美国用中国电话卡 咸阳空港温泉酒店电话是多少 垫江汽车客运中心电话 什么是美国原生电话卡 金峰小区南院物业电话是多少钱 烟台黄务定奶电话 合肥南站到芜湖的动车时刻表查询电话 北海到珠海大巴车电话号码 大连情缘米线电话 大连情缘米线电话 璞里春天酒店电话 澄海华荣西饼公司电话 垫江汽车客运中心电话 合肥南站到芜湖的动车时刻表查询电话 济南高铁拼车电话号码 和谐租车客服电话 西安到云南电话 百度外卖宜昌联系电话 垫江汽车客运中心电话 中山实验高中电话号码 洛阳到石家庄大巴电话多少时间 去游未来电话咨询 合肥南站到芜湖的动车时刻表查询电话 北海到珠海大巴车电话号码 大连情缘米线电话