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
房子抵押贷款20万每个月还多少中国银行公司贷款什么叫贷款年利率贷款利率还有1.1倍吗商贷款利率 固定利率房子抵押贷款20万每个月还多少公积金贷款为什么要夫妻面签什么叫贷款年利率公积金贷款工资证明核实吗贵州代办巨额贷款已申请公积金贷款可以取消吗什么叫贷款年利率商业房可以用公积金贷款吗已申请公积金贷款可以取消吗央行贷款50万贵州代办巨额贷款长期贷款利息公积金贷款的婚姻状态需要如实公积金贷款的婚姻状态需要如实中国银行贷款利率怎么算中国银行组合贷款审批2015年11月份贷款利率东莞南城贷款南宁市首套房贷款利率贷款 多家 银行长期贷款利息建设银行贷款评估南宁市首套房贷款利率中国银行贷款利率怎么算商贷款利率 固定利率父母神秘失踪,只留下四样东西: 1封信、1万块钱、1个扳指,1瓶老酒。 “小烨:18岁前,不许喝酒,不许找我们。” 今晚过后,苏烨就满18岁了。 喝不喝那瓶酒呢? 喝了之后将会发生什么? 这是苏烨面临的两个问题!本是个混吃纨绔,装的 爷爷是盖世剑神,真的 父亲乃镇国将军,真的 哪我纨绔一点没问题吧?别逗煮夫是个大纲废、取名废、简介废,但是唯独文笔和构思不废,喜欢看不一样的故事就请看我的书吧,本来起纲的时候是都市纪实向或者恐怖灵异向的,结果,结果因为很多东西太敏感不能写,一不小心就涉黄涉政涉黑涉毒了,所以就只能改了,以下是我坦白的内容: 这个故事呢,大体是一个叫石羽白的“年轻人”带着自己送上门的老婆孟婆神“孟芝兰”别样的强者归来之路,也没写什么大事儿,就是破个九煞改命局、破个擒天锁地阵、再盗个太古神墓啥的,顺手暴锤一下巡天夜叉王,破解了先天十六卦之谜这种小事都不值得一提了。人活着无论干什么都挺困难。即使坚守不招惹人的原则都躲不过被人刁难。即使是对的,在金钱和权力的逼迫下变成了错的。人活着是最痛苦的事了,压抑的怒火早已烧毁了心脏。人需要发泄的地方,请来疯狂直播间。一户人家二百年的风风雨雨满堂花醉三千客,一剑霜寒十四州。 觉醒了【无上剑心】的落魄皇子段宗成为了天山剑派的观剑弟子,手握灵剑,他能看到剑中蕴藏着的人生大道。 手持千万灵剑,掌握千万剑意。 【白打流派,无双剑道,灵剑名曰‘开山’】 【 洞虚万法,诛杀奸邪,灵剑名曰‘诛邪’】 【长生不死,永存不灭,灵剑名曰‘不朽】 观剑百年,修行百年,一百年光阴,从无名小卒到不朽剑帝,段宗见过前来偷取灵剑的异国皇子,得到过段宗的指点,也见过重返天山剑派的妖女得到过段宗的赏赐,百年之后,天帝去世,天牢妖魔重现天下,剑派危在旦夕,千钧一发之际,段宗带着不朽剑走出剑阁。 “本帝在此,狼狈为奸者,谋权篡位者,倒行逆施者,妖言惑众者,都要死!” 当低魔时代遭遇天灾人祸,当混沌神选开始觊觎这个世界,当旧日支配者降临世间,当泰伦虫族迷路至此,当遭受欲望的驱使互相征伐内斗,人类究竟可以坚持多久? 在末世的大框架下,人性的黑暗面暴露无遗,但勇气的赞歌也可以响彻云霄。 一双眼睛,看不清世态炎凉。 一壶浊酒,饮不尽爱恨情仇。 一张笨嘴,道不完沧海桑田。 一曲高歌,唱不清岁月蹉跎。 一段故事,只不过黄粱一梦。 本书所有主人公只是随着事件的推动而依自己的性格进行。他们只是这段历史的见证者,经历者 ,仅此而已。 万物轮回始于本末,功过是非,皆留各位看官评说。 本作不回会去影射现实生活,如有巧合实属雷同。 毕竟历史总是惊人的相似,我们只是历史的见证者。异宝降世,引修行者争夺,陆丰年幸得一灵瞳,从此可观天地灵气流向,探器灵记忆,获无数功法神通。 “哼哼,我的命运只于手中剑,何人胆敢说半分。” 他不相信仙人救世,但是他相信自己。若行事有违天道,那么便凌驾于仙魔之上,与天论道。听 昨夜有戎狄,叩我雁门关,攀我十丈城墙 看九州有烽火,江山千万里,烽火次第燃 我高歌送君行,掌中弓虽冷,鲜血犹是滚烫 且为君倾此杯,愿君此行归来,踏凯旋……天下风云出我辈,一入江湖岁月摧。皇图霸业谈笑中,不胜人生一场醉。 起神剑,斩断这天下纷争,荡平这贼寇乱党,还天下苍生一个太平盛世! 但这权位,不屑拥有之。 愿携手红颜,笑傲江湖!
玄灵石 打鬼记之校园 千变修罗 星宇辰主 猛龙出狱 我大秦熊孩子,八岁监国 古夜传说 曙光之壤 金言在上 从疯人院副本走出来的戏精 指路之引 纵星者 万尊无一 跨越时间的风筝线 生命邪奏曲 新纪元之时间主宰 嗜血杀器 关于我和我室友们的日常 洪荒佛门二教主 奇闻异事传 银行贷款利率下限 贷款利率还有1.1倍吗 贵州代办巨额贷款 提前还按揭贷款 银行贷款利率下限 公积金贷款工资证明核实吗 贵州代办巨额贷款 商贷款利率 固定利率 南宁市首套房贷款利率 公积金贷款的婚姻状态需要如实 中国银行组合贷款审批 中国银行组合贷款审批 中国银行贷款利率计算公式 贷款利率还有1.1倍吗 中小企业项目贷款评估 提前还按揭贷款 东莞南城贷款 南宁市首套房贷款利率 公积金贷款为什么要夫妻面签 中小微项目贷款评估 贷款利率还有1.1倍吗 建设银行贷款评估 公积金贷款为什么要夫妻面签 什么叫贷款年利率 2016贷款利息 中国银行贷款利率计算公式 南宁市首套房贷款利率 中国银行公司贷款 中国银行贷款利率计算公式 中小企业项目贷款评估 商贷款利率 固定利率 中国银行汽车贷款政策 贷款利率还有1.1倍吗 房子抵押贷款20万每个月还多少 建设银行贷款评估 商贷款利率 固定利率 贷款利率还有1.1倍吗 长期贷款利息 贷款 多家 银行 央行贷款50万 2016贷款利息 中国银行组合贷款审批 提前还按揭贷款 银行贷款利率下限 已申请公积金贷款可以取消吗 中国银行贷款按揭买房好吗 南宁市首套房贷款利率 2016贷款利息 贷款 多家 银行 公积金贷款为什么要夫妻面签 亚星官网 亚星官网 亚星官网 亚星游戏官网 亚星官网 鬼道神君 猎魔:美味佳肴 神话:开局被女帝上门求婚 女装大佬的我混的风生水起 天渊辰 亚星游戏官网 万利官网 欧博游戏官网 亚星游戏官网 葡京官网 提前还按揭贷款 中国银行贷款利率计算公式 什么叫贷款年利率 2016贷款利息 中国银行组合贷款审批 2016贷款利息 央行贷款50万 已申请公积金贷款可以取消吗 中小企业项目贷款评估 建设银行贷款评估 中小微项目贷款评估 中国银行贷款按揭买房好吗 公积金贷款的婚姻状态需要如实 贵州代办巨额贷款 南宁市首套房贷款利率 中国银行贷款利率怎么算 贵州代办巨额贷款 什么叫贷款年利率 公积金贷款工资证明核实吗 中国银行公司贷款 中国银行公司贷款 公积金贷款为什么要夫妻面签 中国银行组合贷款审批 中小微项目贷款评估 2016贷款利息 公积金贷款的婚姻状态需要如实 商贷款利率 固定利率 贷款 多家 银行 长期贷款利息 中国银行贷款利率怎么算