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
k1003火车贵州遵义到重庆火车票k246火车03车箱座位衢州到桂林的火车时刻表查询系统西安枣庄西火车票k1003火车将乐到福州火车k246火车03车箱座位重庆开县到北京火车淄博火车站售票厅电话号码威海到临沂卧铺火车k1003火车威海至长沙火车威海到临沂卧铺火车k246火车03车箱座位淄博火车站售票厅电话号码上海到济南高铁火车站怎么走西安至郴州火车时刻表查询 百度西安至郴州火车时刻表查询 百度天津到沂州火车票无锡至邵阳火车时刻表查询系统西安至江苏镇江的火车站时刻表嘉兴到滕州火车卧铺多少钱一张西安到广元火车哪个站西安枣庄西火车票晏城到张家口的火车站衢州到桂林的火车时刻表查询系统邢台到东莞的火车时刻表天津到沂州火车票威海至长沙火车简介:穿越平行世界,许聪收获了一个可爱的女儿。 可还没等到好好疼爱,女儿就被逼捐,被体罚。一怒之下,拥有系统的许聪,叫来了娱乐圈的一位天皇巨星! “敢欺负许先生的女儿,你这辈子就生活在阴影中吧!” 从此,许聪一边和小姨子带娃,一边靠着系统,在娱乐圈迅速崛起。 歌后,影帝,顶流,想得到我的指点帮助,成为我的门徒?先问问我乖女儿再说! 宣传、策划、投资,想开会和我商量一下?等着,没时间,没看我正陪女儿看喜洋洋呢吗? 乖女儿,来,亲一个!mua!一个强盛的王朝,在烈焰中轰然倒塌。覆巢之下,人们挣扎在未尽的余灰中。许多人扛起了复国的渴望。可是,汹汹而来的鬼蜮伎俩,却将乱局搅动得愈加波诡云谲。好在,大智大勇者的神机妙算,最终冲破了鬼魅的阴霾。然而,一桩被掩藏了数十年的王朝秘事,却始终裹挟在迷雾之中,如今,它更是幻化成一张正缓缓地张开的血盆大口,誓要将这破碎的王朝一口吞下。凡人安享平乐,世界武林却风云四起,华夏独立于诸国,东边有一修魔的大儒,西边有一黄沙中舞刀客,北边华夏公认武帝,南边有枪仙破云霞,中原剑仙向天问剑。 它国异人武者不落其后,十大神帝,九大天使王,一佛祖十八罗汉 ...............  【练笔作品,永久免费】 “希雅,我要学技能!”   “好嘞!安排!”   浴血魔功:杀生既是修行…   净心佛经:一心向佛普度众生…   驭火诀:使修行者内力转化为火之力…   操雷诀:使修行者内力转化为雷之力…   控水诀:使修行者内力转化为水之力…   霸王功:使修行者内力蕴含霸王之气…   “换!”   “好嘞~”   ……   “再换!”   ……   “这些狐妖又漂亮又能打!打包!”   ……   “这些兵器都好喜欢!打包!”   ……   “这座山这草皮都不错!搬走!通通搬走!草皮都给他拔下来!”   ……   “这座岛上好多鸟,抓走,通通抓走!”   ……   莫情:“我们的宗旨是什么?”   众妖:“所到之地,寸草不生!”   莫情:“具体呢!”   众妖:“活的都抓!大山都掏!草皮都扒!大树都拔!”   莫情:“很好!”   ……   莫情:“你们的任务是什么?”   狐妖:“抓妖怪!掏大山!扒草皮!拔大树!”   莫情:“还有呢?”   狐妖:“每天训练生孩子!争取生出好孩子!”   ……   莫情:咱就是一个外挂有点多的小修士,咱可没什么坏心思…你相信鬼怪吗? 起初我是不相信的,直到那一天降临了..... 古往今来,世间流传仙、神的传说,而时至今日,仙路缈缈,已然进入末法时代。 天空中,有人矗立,乌云压顶、身处雷电中心;海面上,有人漫步而来,由远及近,片刻却又消失不见,这些是海市蜃楼产生的幻觉? 有传言,海市蜃楼是连接另一时空的桥梁,聚现另一个世界正在发生的景象! 神话故事是否虚构,仙、神,真的存在过吗?两个时空世界的我,一个大神却生活灰暗,一个平凡却生活美满,都在一个身体内,注定了我与我的纷争,因为只能只有一个我!秦天明穿越小说世界,成为小说中一个戏份不多的反派。 系统:只要宿主你完美杀青,就能够带着本系统回到你原本的世界当龙傲天。 秦天明:简单,演反派我最在行了! 结果女主不按剧本来,开始疯狂倒贴。 秦天明:能别倒贴了吗?我只想杀青啊!男主呢?你怎么还抑郁了?!一户人家二百年的风风雨雨繁忙中的一时疏忽,导致以L市为中心的大面积地区遭到尸化威胁,进而慢慢扩展全球,人类文明已然岌岌可危
我在梦里大统一 偷盗诸天 无敌,从十万分身开始 凡尘炼体 秋水故居人 至死不降 我的血液不一般 乾坤阴阳录 何老医传 我与鬼神打交道 明光法域 足迹,捕风的异乡人 碧海黑帆 金灵神剑诀 长岁劫预告版 玄幻:我家老祖超无敌 大河文明,起源 血之魅影之天下之盟 末世之仙道难觅 光之金字塔一案 三江至长春火车站怎么走 淄博火车站售票厅电话号码 上海到济南高铁火车站怎么走 西安至郴州火车时刻表查询 百度 三江至长春火车站怎么走 扬州到临汾火车时刻表查询 眉山火车站到江油 张家界一邵阳火车站时刻表 晏城到张家口的火车站 威海至长沙火车 嘉兴到滕州火车卧铺多少钱一张 嘉兴到滕州火车卧铺多少钱一张 西安到广元火车哪个站 淄博火车站售票厅电话号码 宝鸡到杭州东的火车票查询 西安枣庄西火车票 杭州至北京火车站 晏城到张家口的火车站 无锡至邵阳火车时刻表查询系统 k1003火车 北京乳山的火车时刻表 k246火车03车箱座位 贵州遵义到重庆火车票 西安至江苏镇江的火车站时刻表 张家界一邵阳火车站时刻表 西安到广元火车哪个站 晏城到张家口的火车站 贵州遵义到重庆火车票 无锡至邵阳火车时刻表查询系统 晏城到张家口的火车站 西安至郴州火车时刻表查询 百度 北京乳山的火车时刻表 衢州到桂林的火车时刻表查询系统 k1003火车 西安到广元火车哪个站 西安枣庄西火车票 石门北到襄阳火车时间 眉山火车站到江油 西安到广元火车哪个站 石门北到襄阳火车时间 西安枣庄西火车票 威海到龙口的火车 天津到沂州火车票 杭州至北京火车站 威海到临沂卧铺火车 北京乳山的火车时刻表 嘉兴到滕州火车卧铺多少钱一张 西安枣庄西火车票 郑州一青岛的火车票多少钱 将乐到福州火车 亚星游戏官网 亚星官网 亚星官网 亚星官网 亚星官网 神仙带我到洪武 超级僵尸先生 从霉运开始的神豪 龙域神尊 十三岁娃 百家乐官网 澳门葡京游戏官网 澳门葡京官网 百家乐官网 万利游戏官网 威海到临沂卧铺火车 无锡至邵阳火车时刻表查询系统 宝鸡到杭州东的火车票查询 k246火车03车箱座位 k1003火车 三江至长春火车站怎么走 威海到龙口的火车 上海到济南高铁火车站怎么走 晏城到张家口的火车站 邢台到东莞的火车时刻表 晏城到张家口的火车站 西安至江苏镇江的火车站时刻表 扬州到临汾火车时刻表查询 郑州一青岛的火车票多少钱 郑州一青岛的火车票多少钱 无锡至邵阳火车时刻表查询系统 杭州至北京火车站 石门北到襄阳火车时间 威海到龙口的火车 定南的火车 威海至长沙火车 西安枣庄西火车票 晏城到张家口的火车站 郑州一青岛的火车票多少钱 西安至郴州火车时刻表查询 百度 威海到临沂卧铺火车 西安至郴州火车时刻表查询 百度 嘉兴到滕州火车卧铺多少钱一张 西安至江苏镇江的火车站时刻表 张家界一邵阳火车站时刻表