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
奥特曼一游戏奥特曼小游戏双人3奥特曼一游戏下载奥特曼一游戏下载游戏奥特曼一游戏下载游戏大全集奥特曼一游戏奥特曼游戏小孩游戏下载游戏大全免费下载奥特曼一游戏下载奥特曼大型游戏大全图片奥特曼游戏全部下载 迅雷下载奥特曼游戏跑酷游戏。奥特曼一游戏下载地址奥特曼游戏小孩游戏下载游戏大全免费下载奥特曼游戏跑酷游戏。奥特曼一游戏下载游戏奥特曼游戏全部下载地址安卓陆军游戏大全奥特曼一游戏下载游戏大全下载安装奥特曼一游戏下载游戏大全下载安装奥特曼一游戏奥特曼小游戏双人3奥特曼游戏跑酷游戏.奥特曼的奥特曼打僵尸游戏大全集奥特曼兄弟1游戏下载手机版下载安装奥特曼一游戏下载游戏大全下载奥特曼兄弟1游戏下载地址奥特曼一游戏下载游戏大全集奥特曼兄弟1游戏下载手机版下载奥特曼一游戏奥特曼游戏小孩游戏下载游戏大全免费下载一人的意志能撼动全局,改变世界的秩序荒诞是没有理由的,恐怖也只是来自内心的无助,我们只是个观众,看着别人怪异的行为,尴尬的表演,也许只是为那么点希望而活着。缘若未尽,必有重逢。念念不忘,必有回响。成年人的告别仪式很简单,你没有回我消息,我也便默契的没有再发,就这样安静地消失在彼此的生活里,好像从没认识过一样。 每件事都是最好的安排,包括你出现,包括你离开,都是最好的安排。希望你比昨天聪明,比去年自由。 他日功成名遂了,还乡,醉笑陪公三万场。 我们不能改变现实,只能安慰“今天是离别是为了以后更好的相聚”。人生有初见,相识,就一定会有离别。可是,这样的离别,还是出乎了我们所有人的意料。 纵使受尽委屈!经常会问自己!我也要努力,有时候…….让人心痛的不是离别!而是离别后的回忆!少年血脉被夺,修为尽废,家族中人落井下石。至尊血脉觉醒,神秘小鼎激活,重塑一身体魄,人挡杀人,神挡弑神!修行之路逆水行舟,世间诸事实力为尊,至尊血脉摧枯拉朽!万古独断,独镇深渊,万界无敌,不败神话! 股市,是上帝留存在世间的最后一个伊甸园。 这个伊甸园,是圣人的天堂,凡人的地狱。 不管是圣人又或者是凡人,都被贪婪与恐惧所支配着。 稍不留神,便可能马失前蹄。 是驰骋在天堂里超凡入圣,还是在地狱里摸爬滚打,所有干系。 都寄于…… 指尖之上。喂!最近怎么开始听emo歌单了啊?别难过,我分骨头??给你啊!我的字典里希望你能开心 ——爱你的狗狗??笨蛋狗狗只要被人摸一下头就开始喜欢人类。 叶星辰本是天命神话,却遭奸人所害,性命垂危…… 十五年后,北荒一少年以雷霆万钧之势崛起,踏天骄,携红颜,打爆各种神体王体,铸就诸天万界无敌神话! 以最震慑的雷霆!击碎最沉重的黑暗! 一天重复着一天,当初选择并打算坚持的理想在不知不觉中变了质,面对现实中的种种无奈,不得不放弃一些长久以来所坚持的东西,迷茫的寻找着以后的路,如果有一天我们如众多穿越者那样穿越到不同的世界,我们又能做什么?又能改变什么?(PS:一直答应过一位好友要以他为主角写一本书,虽然好久好久没有联系,毕竟答应过的事情都要做到,人不能无信嘛,本书虽然会写得有些乱,未来可能骂评如潮,但是不会鸽,会坚持写完。) 热血少年,力挽狂澜,创造出属于自己的王朝,书写一段热血的神话。 1
我带着面板在诸天轮回 太阳领主上岗记 诡异世界小管家 恶来传 天心策 九州战魂 开局我就不是人了?! 我和鬼的故事 混沌五行,因果轮回 末日樊笼 末世之凄惨人间 我真的是正派:开局抢亲女帝 侠二代的江湖历险 羽化飞升后,我成就万古人皇 绝命人 苍灵神尊 具像者们 诡道天师 天启皇帝 这是一个满是大神的世界 奥特曼兄弟1游戏 奥特曼游戏跑酷游戏。 奥特曼游戏之银河战士 奥特曼一游戏下载游戏大全集 奥特曼小游戏双人3 奥特曼兄弟1游戏下载地址 奥特曼游戏自己第三版 奥特曼游戏全部下载地址 奥特曼兄弟1游戏下载 奥特曼游戏什么好玩 奥特曼大型游戏大全 奥特曼大型游戏大全 奥特曼兄弟1游戏下载手机版 奥特曼游戏跑酷游戏。 奥特曼一游戏 奥特曼一游戏下载游戏大全 安卓陆军游戏大全 奥特曼兄弟1游戏 奥特曼小鸡游戏下载游戏大全集 奥特曼一游戏下载 奥特曼游戏跑酷游戏. 奥特曼一游戏下载 奥特曼小鸡游戏下载游戏大全集 奥特曼一游戏下载游戏大全下载 奥特曼游戏全部下载 迅雷下载 奥特曼兄弟1游戏下载手机版下载 奥特曼兄弟1游戏 奥特曼小鸡游戏下载游戏大全集 奥特曼的奥特曼打僵尸游戏大全集 奥特曼兄弟1游戏 奥特曼一游戏下载游戏大全集 奥特曼游戏跑酷游戏. 奥特曼一游戏下载游戏 奥特曼一游戏 奥特曼兄弟1游戏下载手机版 奥特曼一游戏下载游戏大全 奥特曼一游戏下载游戏 奥特曼游戏自己第三版 奥特曼兄弟1游戏下载手机版 奥特曼一游戏下载地址 奥特曼一游戏下载游戏大全 奥特曼游戏全部下载地址 奥特曼兄弟1游戏下载手机版下载安装 安卓陆军游戏大全 奥特曼一游戏下载游戏大全下载安装 奥特曼游戏跑酷游戏. 奥特曼大型游戏大全 奥特曼一游戏下载游戏大全 奥特曼兄弟1游戏下载手机版下载 奥特曼游戏之银河战士 亚星官网 亚星官网 亚星游戏官网 亚星官网 亚星官网 末世游戏:我成了一只丧尸 往来夕 全球进入鬼灵复苏时代 生化之无人生还 白玉古魔 亚星官网 万利官网 欧博游戏官网 亚星官网 AG真人 奥特曼兄弟1游戏下载地址 奥特曼游戏跑酷游戏. 安卓陆军游戏大全 奥特曼大型游戏大全图片 奥特曼大型游戏大全 奥特曼游戏全部下载 迅雷下载 奥特曼兄弟1游戏下载手机版下载地址 奥特曼一游戏下载游戏 奥特曼游戏全部下载地址 奥特曼游戏小孩游戏下载游戏大全 奥特曼游戏全部下载地址 奥特曼兄弟1游戏下载地址 奥特曼游戏什么好玩 奥特曼游戏自己第三版 奥特曼兄弟1游戏 奥特曼游戏跑酷游戏. 奥特曼一游戏下载游戏大全集 奥特曼大型游戏大全 奥特曼兄弟1游戏下载手机版下载 奥特曼一游戏 奥特曼兄弟1游戏下载手机版下载地址 奥特曼小鸡游戏下载游戏大全集 奥特曼游戏跑酷游戏。 奥特曼游戏小孩游戏下载游戏大全 奥特曼一游戏 奥特曼兄弟1游戏 奥特曼小鸡游戏下载游戏大全集 奥特曼一游戏下载游戏大全集 奥特曼兄弟1游戏 奥特曼兄弟1游戏下载手机版