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
风险限额 项目贷款房贷有逾期能贷款吗风险限额 项目贷款福建高校助学贷款系统佛山那有贷款翡翠可以抵押贷款吗夫妻贷款的条件凤凰金融旗下贷款产品夫妻用公积金贷款买房佛山企业贷款政策佛山那有贷款吗风险限额 项目贷款负债告能按揭贷款吗佛山那有贷款公司电话凤凰金融旗下贷款产品佛山企业贷款政策夫妻贷款额度评估佛山那有贷款公司佛山那有贷款公司二手车贷款需要抵押吗扶贫贷款条件佛山那有贷款公司夫妻用公积金贷款买房房地产开发公司 贷款条件佛山那有贷款房贷最新贷款利率2015最新消息福建高校助学贷款系统房地产开发公司 贷款条件二手车贷款需要抵押吗负债告能按揭贷款吗股市,是上帝留存在世间的最后一个伊甸园。 这个伊甸园,是圣人的天堂,凡人的地狱。 不管是圣人又或者是凡人,都被贪婪与恐惧所支配着。 稍不留神,便可能马失前蹄。 是驰骋在天堂里超凡入圣,还是在地狱里摸爬滚打,所有干系。 都寄于…… 指尖之上。一段未知星球讯号的发现,彻底改变了苏飞的命运,二十五岁的苏飞被带回八年之前,面对重复的人生,苏飞赫然发现自己的体内竟然存在一个外星智能生物……这一次,他不再平凡!记忆的片段只是存留,无聊之余用文字记录而已;我称它为“黄梁元年”。 记忆中,在这里人有着辫子的,我的名字叫初三,这个名字是怎么来的,收留我长大的老道士告诉我,我是他正月初三在庙门捡到,也不知道父母是谁,他就这样收留了我;这个老道士给我起了一个道号“初三”,别人也都叫我初三,我就一直当我的名字是初三了。梦里,叶燃扛着一座监狱满世界抓贼,顺便收了几个小弟,教了几个徒弟,养了几个宠物。 梦醒后,小弟成了诸天大佬,徒弟成了神级宗师,宠物成了超级神兽。 某个游手好闲不学无术的私生子,则一脸懵逼的看着手上的天劫监狱里,关着的一群大魔王…… 这特么的不是梦?! ……这是有关于恐龙之星的事。 再次归来,谭熙、阿盛、傅延泽三人命运又将出现怎样的改变。。。故事发生在西南某省城,以三个不同背景家庭的年轻人的主线,记述了他们为了自己和家庭而奋斗的故事。平淡的人生,其实就是最真实的生活。这三个家庭因为各种偶然的原因相识相知,一起经历了几十年的风雨岁月。本书记述了他们平凡而又多彩的人生,以此纪念逝去的岁月和见证过这一切的人们。。这是属于我的狂欢,这里是我的家乡,我马上要离开的地方,这里有很多关于我的记忆,在别人眼中我是无赖我是流氓我是一个好人  他出场即巅峰,谁又知往事苦?   妻子欺骗他!   仙人要杀他!   魔族要灭他!   妖族要害他!   刚绑定的系统,居然抛弃他!   他本以为自己可以守护这个世界,然,这个世界又有什么值得他守护的?一个末日的到来,人类一败涂地,幸存者们需要在艰难的环境里生存下来,且看林宇如果在这艰苦环境下装逼打虎。
追命八年伊始 百年争战 来!打我 重生:我在玄幻造加特林 有风自南落长安 孤岛行 永恒纪主 全球异化之暗影前驱者 近战狂兵 坑坑世界 奥特:救赎之光 暗处的人 虚界神主 奈何崖 九转金莲 自然神灵录 来自异度纪元的无尽幻想 末世游戏之魔法师 元鸿纪 大夏执刀人. 房贷政策调整贷款放款 佛山企业贷款 夫妻贷款额度评估 佛山那有贷款公司 房贷政策调整贷款放款 房地产开发贷款5证 夫妻两方贷款 佛山线下贷款 房贷最新贷款利率2015最新消息 负债告能按揭贷款吗 夫妻用公积金贷款买房 夫妻两人共同贷款买房 二手车贷款订单审核 佛山企业贷款 翡翠可以抵押贷款吗 佛山那有贷款 夫妻两方贷款 房贷最新贷款利率2015最新消息 扶贫贷款条件 风险限额 项目贷款 佛山企业贷款 凤凰金融旗下贷款产品 房贷有逾期能贷款吗 佛山那有贷款公司电话 佛山企业贷款政策 二手车贷款订单审核 房贷最新贷款利率2015最新消息 房贷有逾期能贷款吗 扶贫贷款条件 房贷最新贷款利率2015最新消息 佛山那有贷款 佛山企业贷款 分期乐银行贷款逾期后果 风险限额 项目贷款 房地产开发公司 贷款条件 佛山那有贷款 分期乐银行贷款逾期后果 夫妻贷款额度评估 二手车贷款订单审核 凤凰金融旗下贷款产品 福建高校助学贷款系统 负债30多万能贷款吗 分期付款的房子能贷款吗 夫妻两人共同贷款买房 佛山那有贷款公司电话 佛山企业贷款 夫妻两人共同贷款买房 福建高校助学贷款系统 二手车贷款需要抵押吗 夫妻贷款的条件 亚星官网 亚星官网 亚星官网 亚星游戏官网 亚星官网 护魂殿 恋战记 轩盏龙炎 止水湔 剑诀:登上巅峰的秘诀 百家乐官网 澳门葡京游戏官网 葡京官网 百家乐官网 万利游戏官网 夫妻贷款额度评估 夫妻用公积金贷款买房 夫妻两方贷款 佛山企业贷款政策 二手车贷款需要抵押吗 凤凰金融旗下贷款产品 佛山企业贷款政策 负债30多万能贷款吗 佛山企业贷款政策 房贷最新贷款利率2015最新消息 负债30多万能贷款吗 夫妻贷款的条件 房贷有逾期能贷款吗 佛山那有贷款公司电话 佛山那有贷款 夫妻两方贷款 房地产开发公司 贷款条件 分期付款的房子能贷款吗 二手车贷款需要抵押吗 扶贫贷款入股合法吗 佛山那有贷款吗 负债30多万能贷款吗 分期付款的房子能贷款吗 房贷有逾期能贷款吗 扶贫贷款入股合法吗 福建高校助学贷款系统 房贷有逾期能贷款吗 房地产开发贷款5证 分期乐银行贷款逾期后果 房地产开发公司 贷款条件