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
茶陵到南宁汽车站时刻表兰州至台州汽车时刻表五台山 汽车票资源汽车时刻表郸城到郑州汽车多少钱茶陵到南宁汽车站时刻表蒲城到建瓯的汽车站五台山 汽车票汉川到武汉哪个汽车站泉州到邵东汽车查汽车里程数五台山 汽车票安丘到济南的汽车早上查汽车里程数东安到益阳汽车站泉州到邵东汽车新化汽车西站 自动取票亳州汽车站有那些亳州汽车站有那些广州到北海 汽车济宁到俊县汽车亳州汽车站有那些汉川到武汉哪个汽车站本溪到大连汽车票价是多少钱济南到高密汽车票价沈阳到朝阳汽车途径哪济南到高密汽车票价本溪到大连汽车票价是多少钱广州到北海 汽车安丘到济南的汽车早上有人问:“生活的意义是什么?”我说:生活的意义就是不需要去寻找它的“意义”,我们活在这个光怪陆离的世界里,像是星辰大海、繁星点点,而意义就在于:我们,慢慢发光的那一个过程。 还有人问:“那爱情呢,是什么?” 爱情……也许会让你这颗“星”熄灭,但总会出现一个人点亮你的世界。 我叫周东黎,我用我的故事来告诉你,什么是生活,而什么又是爱情。 天元历1214年,天元王朝在经历了数百年的繁荣后,终于是盛极必衰走向了衰亡,其时天下大乱群雄崛起,所谓秦失其鹿,天下共逐之!且看谢长安是如何从一个山野小子一步步的走向武学巅峰并一统天下,建立百花王朝,成为后世敬仰的百花大帝! 建立了粉丝群1012144039,小伙伴儿们可以进群一起畅聊。唯一微信公众号是老三的books。本来是一个小小客服被神选到了小说世界,没想到系统来晚了害我白等了十五年 没想到吧系统重启直接重新开始,黑暗森林我带着系统回来了! 在风谷道馆地下室捡到了人皮书的张鹄,探索着人皮书上给出的一个个任务,解开了身上的一个个能力,逐渐触碰到灵异的真相。   张鹄利用人皮书以一个还愿师的身份驾驭厉鬼,走上了一条与灵异事件处理司截然不同的道路。一方面抗衡厉鬼,一方面抗衡灵异事件处理司。 另外他发现,人皮书做完的任务赋予他的能力,逐渐把他也变成了一个鬼,来到了死后的亡者世界,见到了所有的前任还愿师,还愿师的目的是掌控亡者世界,让它不至于失控,他要重新规划亡者世界的规矩和法则,只是刚到亡者世界的张鹄在这里的实力和刚触碰灵异事件的他一样,这是一个新的开始,一次在亡者世界的变强之路。将类似于克苏鲁不可知的魔神与东方修真等结合。通过修真,探寻不可知的神秘,来获知真相。活死人、死而复生者、不断轮回、时空、维度、狼人,古神魔与现代超能者,这一切将发生何种碰撞。如果有兴趣就来看看吧。 是什么力量在掌控着生与死?西方的魔法者和东方的修真者到底谁更强大?精和妖到底和人类之间有着什么样的恩怨?被改造基因的人类为何会获得超越人类的力量?那传说当中的昆仑仙境真的就是人类最后的诺亚方舟?一次机遇之下少年重获再活一世的机会来到了一处崭新的世界,这里没有花俏绚丽的魔法,人人却都崇尚修炼魂力,修行极其艰难却不断有人前仆后继,因为命运的安排少年同样踏上了这条永无止境的道路那他又会到达怎样的地步?这其中又会有多少命运的羁绊?又会有多少的艰难与辛酸...... &amp;lt;万界魂破&amp;gt;是我的第一本书,所以希望承蒙各位读者的关心苍穹之下,众生如蝼蚁。 道门之下,凡人如草芥。 与世隔绝的灵溪村,因为一件法器遭受灭顶之灾。 少年陈元在这场灾难中死而复生,并意外拜入宋国境内的一方修仙道门,自此踏上一条修仙路……深山野林间无人问津的老宅,悬崖陡壁上倒悬的疑棺和山峡百年都无人踏足的荒庙,这些曾经都极具有神秘色彩的古文化产地和当地的风俗人文,都是我想要且极其渴望有机会一探其险的地方。那些祖辈相传的戒训,深入简出的守墓人,以及穿插在两谷之前的密链,敢于攀登和踏足才能解开这数百年乃至数千年不为人知的秘密。天龙国皇权覆灭后百年来有三个派系组成,士族派,中立派,变革派维持着整个国家的平衡。 但因为一个二三岁的男人改变了这种平衡,他为变革派代表,一心想要铲除世家门阀让国家成为一个人人平等的国度。林云穿越到平行世界,成了乡镇上一所“烂摊子”小学的校长。为此,同事们都惊了,中心小学这个没人敢接的烂摊子,他居然接了,这小哥看起来能处哇!林云哪来的勇气?原来是最强教育管理系统的加持,从此,中心小学所有师生居然脱胎换骨,一跃问鼎江湖。一张张荣誉证书雪片似的飞来,一份份满意的答卷横空出世,整个教育界顿时沸腾了……
月寒宫传 我与妖女一起斩神 大爱真仙 人帝: Human emperor 念灵之桀骜鬼妻 孤风破影 从挨打开始 KOF97 大蛇篇 空门:律者 绝世杏林 无敌保护系统 直播:我做网红那些年 青龙大战黑龙潭第二部 真武帝君之缘定今生 重生之笔神 荒岛之王 小飞侠李可可屠龙记 故楚忆歌 我创造了最强惊悚世界 传统玄幻之九龙杯 深圳市凤凰汽车站时刻表 英德到常德的汽车站时刻表 新化汽车西站 自动取票 郸城到郑州汽车多少钱 深圳市凤凰汽车站时刻表 广东惠阳汽车站时刻表 新化汽车西站 自动取票 常德汽车南站距常德汽车总站多远 沈阳到朝阳汽车途径哪 常州东站到邳州汽车票 河源至博罗汽车客运站 河源至博罗汽车客运站 南宁-荔波汽车票一 英德到常德的汽车站时刻表 茶陵到南宁汽车站时刻表 郸城到郑州汽车多少钱 天水去甘南汽车路线图 沈阳到朝阳汽车途径哪 茶店子到遂宁白马汽车站时刻表 五台山 汽车票 英德到常德的汽车站时刻表 东安到益阳汽车站 茶店子到遂宁白马汽车站时刻表 查汽车里程数 泉州到邵东汽车 南宁-荔波汽车票一 沈阳到朝阳汽车途径哪 兰州至台州汽车时刻表 茶店子到遂宁白马汽车站时刻表 沈阳到朝阳汽车途径哪 郸城到郑州汽车多少钱 邵东汽车西站店面出租 资源汽车时刻表 茶陵到南宁汽车站时刻表 本溪到大连汽车票价是多少钱 济南到高密汽车票价 资源汽车时刻表 新化汽车西站 自动取票 南宁-荔波汽车票一 东安到益阳汽车站 济南到高密汽车票价 常州东站到邳州汽车票 湘潭到益阳汽车东站 天水去甘南汽车路线图 查汽车里程数 邵东汽车西站店面出租 河源至博罗汽车客运站 济南到高密汽车票价 南宁-荔波汽车票一 蒲城到建瓯的汽车站 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 共享精力 名为仙 一切从源武开始 逍遥小里正 寒武江湖路 澳门葡京游戏官网 葡京官网 澳门葡京官网 百家乐官网 亚星官网 东安到益阳汽车站 深圳市凤凰汽车站时刻表 英德到常德的汽车站时刻表 英德到常德的汽车站时刻表 广东惠阳汽车站时刻表 本溪到大连汽车票价是多少钱 兰州至台州汽车时刻表 五台山 汽车票 南宁-荔波汽车票一 查汽车里程数 常州东站到邳州汽车票 深圳市凤凰汽车站时刻表 湘潭到益阳汽车东站 常德汽车南站距常德汽车总站多远 广东惠阳汽车站时刻表 新化汽车西站 自动取票 深圳市凤凰汽车站时刻表 兰州至台州汽车时刻表 邵东汽车西站店面出租 邵东汽车西站店面出租 广东惠阳汽车站时刻表 广东惠阳汽车站时刻表 茶店子到遂宁白马汽车站时刻表 兰州至台州汽车时刻表 本溪到大连汽车票价是多少钱 湘潭到益阳汽车东站 济南到高密汽车票价 蒲城到建瓯的汽车站 济宁到俊县汽车 泉州到邵东汽车