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
新乡新运驾校学费多少?新乡考A证驾校新乡豫北驾校考场地址新沂大通驾校c1科目一新宇驾校彭俊巧新乡新运驾校学费多少?天坤驾校学费新乡豫北驾校考场地址新乡驾校学大车邢台驾校考试预约新宇驾校学费多少钱新乡新运驾校学费多少?天坤驾校考场在哪新宇驾校学费多少钱新乡豫北驾校考场地址邢台驾校考试预约临沂有资格考b2的驾校新宇驾校彭俊巧新宇驾校彭俊巧新乡市指南针驾校电话新乡交通驾校考a3么新宇驾校学费多少新乡驾校学大车新乡能考a3的驾校新宇驾校哪个教练好新乡哪个驾校考a3新沂大通驾校c1科目一新乡哪个交通驾校交A3新乡市指南针驾校电话天坤驾校网页莽撞少年大难不死却得到神奇异能;行动唯快为强使他俯瞰群英。 身逢乱世,奸佞当道。少年闯京师为父报仇,却发现了更凶险的局势,陷身更黑暗的阴谋。 繁杂世道,生死危机中,面对凶险只有迎面而上,勇闯不归路。勇敢地为自己,为所爱的人闯出一片生天! 这是一个陷入危机的孟浪少年在乱世中成长和担当,最后成长为救世英雄的故事。*****《流浪在仙界》的有声图书已经在喜马拉雅上架了,多谢各位多去关注。*****百里长青穿越到仙界后发现:地球的心法远不如仙界的功法,但地球的武技却远高于仙界的武技。 汉武帝以:“侠者,以武犯禁”为借口,将江湖上的大部分武林高手围剿斩杀。百里长青(原名郭解)和他的八个兄弟,四个婢女,七个徒弟,还有五千个生死兄弟,在卫青大将军的十万大军合围后,全部万箭射杀,最后被仙界大佬救下灵魂穿越到仙界的凡人界,要求他们去仙界完成一个非常重要的任务。 百里长青带着他的兄弟和徒弟在仙界杀进凡人界,仙人界,神界等一个又一个的大陆,破解一个又一个的惊天阴谋,最终尘埃落定! 三世为人,穿越到仙界后百里长青一切看淡,性格大变,游戏风尘,风趣幽默尽在本书中。 封林是一个在北京潘家园旧货市场开旧物店的小老板,一次在给店里的老房屋装修的机会,竟然在家里墙壁地下暗格发现一个密室,不太大的密室角落里有着一口上了锁的红色的木箱子,盒子打开后里面有着几样东西,一块巴掌大纯金的腰牌。 一本非常破旧的遁甲巫术古书, 还有着一本记录了很多秘事的明朝古书,还有一张残缺不全的地图,箱子里面藏着很多的秘密,让他知道了自己的家族竟然是一个传奇盗墓家族的后人 从古至今的家族秘密缓缓的被揭开,父亲的突然消失,也与此事有关,是为了寻找哪些传说中的东西。 自己兄弟的回归,退役特种兵赵雷,去追寻着父亲的脚步去寻找那传说中的古遗迹,不得不踏入那些恐怖之地。 入活人的禁区,与僵尸斗法,与活人斗智,有一张尸面的鬼狐仙,荒冢野坟墓里的媚女,害人的白皮千年老狸子,披着美女人皮的行尸走肉,几十年难得一见沉没在海里的幽灵鬼船。 一张残破不全的地图,一截刻满符文的龙骨,到底藏着什么秘密? 林洛偶得天圣戒,获得大量修炼资源、秘笈等,通过时光回溯,自娘胎筑基,一梦万年。十月金丹,一岁余元婴,三岁化神…… 为亲情,暗授父母修炼功法,并暗中保护,成就父母“医道双圣”之名,为大夏鞠躬尽瘁。 为家国,授众人修炼功法,危难中出手,书写“河西经事”,绘浴血篇章。 为友情,建宇宙战舰,组“第九舰队”扬大夏国威,护地球安宁。 为爱情,自我封印,历经诸多事,只为时间线回归,迎回妻女。 一枚天圣戒,提供一个机会,完成夙愿。林洛不是主角,只是隐藏在故事背后的时间线。 从八十年代,到二零年代,社会发展,人心思变,现实与梦幻相交织,真实与幻想相变换,一样的年代,不一样的发展……心猿,一个普普通通的在校大学生,从小父母不知所踪,福利院长大。好不容易成为“全村的希望”,进到985,每天上课下课,刚要成为社畜,却不曾想自己竟然因为喝醉了……穿越了,到这临界岛上,且看社畜一步一步如何成长的故事。天道有缺,世间最强体质神魔霸体被天道所摒弃,十五年忍辱,终将迎来曙光! 大道枷锁自束己身桎梏又如何?我自当逆战苍穹,笑傲九重天,神挡杀神,佛挡弑佛,逍遥天地间! 一日破关,我为尊,一拳荡寰宇,一脚山河溃,一静万物生,一动诸天陨,一念可化阴阳轮回,一念可镇压永恒万古! 我为太古第一神王,天骄至尊皆是我帝路上尸山血海! 我当以一双铁拳,粉碎诸天万界,天道也不行!什么是奇迹? 生命本身,就是奇迹。29岁的天岚,事业无成,刚刚朋友也和自己分手,独自一人走在熟悉的街道上,往事历历在目,也许终究是自己错了,但你们却也不该这样对我······ 如果能够回到过去,我想我一定······从地球穿越到平行空间的末世,陌游生该何去何从 伴随而来的召唤师系统、全人和亚人之间的矛盾、魔兽的进攻…… 对故乡的思念…… 我是陌游生,荣耀系统,请多多指教。高三少年竟是人类决胜的关键! 边界外的怪物入侵人类的家园,捍卫人类的神秘组织。 少年,这是你的命运,逃不掉的重担。 只有你勇敢面对他时,你才会明白何谓真正的强大。   
剑冲九霄之绝对领域 剑可开天 世道变了 龙道传奇 逍遥小医圣 谋族篡位 围猎游戏 妖道江湖 幻灵:我是全球最强 百岁福 全民御兽:开局天赋映照诸天 阴阳,五行诀 邪灵武侠 诸天破碎之后 逐山河 上苍劫光 不谓仙 淦!我竟然这么猛! 全民模拟:开局觉醒无限推衍 九鼎书院的最强弟子 新乡考A证驾校 邢台驾校考试预约 临沂有资格考b2的驾校 新宇驾校彭俊巧 新乡考A证驾校 新乡哪个驾校可以考a3 莘县哪个驾校拿证快 天坤驾校地址 新乡哪个驾校可以考a3 天坤驾校考场在哪 新乡驾校包车2016 新乡驾校包车2016 新乡能考a3的驾校 邢台驾校考试预约 新乡新运驾校学费多少? 新宇驾校哪个教练好 新树仁驾校怎么样 新乡哪个驾校考a3 新乡考A2证驾校 新乡豫北驾校考场地址 新宇驾校学费多少义马 新乡豫北驾校考场地址 新乡考A2证驾校 新宇驾校学费多少 宜春驾校一点通b2 新乡市鑫鑫交通驾校 新乡哪个驾校考a3 新乡考A2证驾校 新乡交通驾校考a3么 新乡哪个驾校考a3 新宇驾校彭俊巧 新宇驾校学费多少义马 新沂大通驾校c1科目一 新乡新运驾校学费多少? 新乡能考a3的驾校 新宇驾校哪个教练好 新沂大通驾校c1科目一 莘县哪个驾校拿证快 新乡能考a3的驾校 新乡豫北驾校科三考场 新宇驾校哪个教练好 天坤驾校地址 新乡市指南针驾校电话 新树仁驾校怎么样 新宇驾校学费多少钱 新宇驾校学费多少义马 新乡驾校包车2016 新宇驾校哪个教练好 新乡市鑫鑫交通驾校 天坤驾校学费 亚星游戏官网 亚星游戏官网 亚星官网 亚星官网 亚星游戏官网 冒牌小道医 云海苍穹 全民征战:创世神在线陪聊 江湖豪侠传 我在东京当嫌疑犯 欧博官网 亚星官网 万利游戏官网 欧博官网 亚星管理平台 新宇驾校彭俊巧 新树仁驾校怎么样 新乡哪个交通驾校交A3 新乡驾校学大车 新树仁驾校怎么样 新乡新运驾校学费多少? 新乡驾校包车2016 新乡考A2证驾校 新乡卫滨区驾校 新乡考A证驾校 天坤驾校地址 新乡哪个驾校可以考a3 天坤驾校地址 新宇驾校彭俊巧 天坤驾校考场在哪 新乡能考a3的驾校 临沂有资格考b2的驾校 新乡市鑫鑫交通驾校 新宇驾校彭俊巧 新乡卫滨区驾校 新乡市鑫鑫交通驾校 天坤驾校地址 新乡市指南针驾校电话 新乡豫北驾校科三考场 邢台驾校考试预约 新乡豫北驾校科三考场 新乡考A2证驾校 新宇驾校哪个教练好 新乡考A2证驾校 莘县哪个驾校拿证快