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
埃罗芒阿老师漫画第5卷绑架班长漫画我太受欢迎漫画不嫁总裁家男仆漫画孕妇腿肿漫画图片埃罗芒阿老师漫画第5卷兔死狗烹的漫画我太受欢迎漫画回到校园漫画打屁屁蓝漠的花漫画什么时候更新龙珠漫画全王埃罗芒阿老师漫画第5卷毁童年柯南漫画龙珠漫画全王我太受欢迎漫画蓝漠的花漫画什么时候更新外国仁漫画动漫是动画和漫画的通称.动漫产业是指以"创意"为核心以动画动漫是动画和漫画的通称.动漫产业是指以"创意"为核心以动画植物大战僵尸的漫画全集中文版快看热门漫画排行榜龙珠超漫画26预告龙珠超 力量大会漫画胡萝卜漫画图片大全孕妇腿肿漫画图片relife重返17岁漫画179不嫁总裁家男仆漫画应声入网大学篇漫画植物大战僵尸的漫画全集中文版ジンメン 漫画陈渊穿越成为侦察连的兵,绑定一个很争气的系统。 系统很成熟,只要条件满足,自己就能签出技能,并且监督修炼。 从小成到大成,再到圆满,凡是他的技能,都会自行修炼,陈渊想努力,都没什么机会。 奈何他的系统实在太争气了,只是签到三年,他就成为全球特战之父。余跃从2022年穿越会了玛雅文明时代,发现这居然是个可以修炼成神的时代…… 1997年10月20日,印刻着密密麻麻字迹的古卷通过一种特殊的方式来到这个人间,上面不断变换的文字记载的秘密仿佛是是一把枷锁。 ...... 1989年1月20日,一列火车行驶在白雪皑皑的铁路上。 ...... 长着一只巨手酷似传闻雪怪的怪物在这列火车上带走了一条人命,命运的流向开始朝着令人捉摸不透的方向行走。 ...... 民间俗事怪谈调查局,一个神秘的组织...... ...... 在这后背酝酿的是一场阴谋还是一场只为了人心争斗的纷争?谁都不知道......他是古文系研究生,刚毕业,就去大都市打拼,没想到半路遇扒手,没了钱包手机,靠乞丐的救济过日子,可没想到的是,因为奇遇,与妖魔邪祟打交道,渐渐声名远播,因为相貌以及性格,得到许多个富家女的青睐,也结下了不少的梁子。演绎人生百态,都市人情冷暖,以及爱恨情仇!孟婆说我在阳间的寿命没超过24小时,不给予办理投胎业务。 而我当了十八年的鬼,终于等来家里给我烧了一间小卖部。 我意外发现这件小卖部通阳间,可以从阳间进货,拿到阴间来卖。 从此以后我便就做起了阴阳两界的生意,叱咤阴间。 和乔老爷一起卖手机,和扣比一起打篮球,但阎王竟然不要我投胎?此作品是根据生活加以想象,构思出来的简短文集,一个章节就是一个故事,文章观点仅是个人理解,有冒犯之处或者情节雷同,请多包涵,谢谢一场大地震,让返祖狂潮席卷全球。 动物、植物、人类,都在这场灾变中,变回自己祖先的模样。 武者、修士、妖鬼、仙人、恐怖的鸿蒙古兽…… 返祖的次数越多,返祖的祖先越古老、强大。 就在所有人都好奇会返祖成哪位祖先时。 李响惊讶发现,自己可以主动选择返祖对象。 第一次返祖,别人都觉醒武者祖先,李响却选择了武侠时代最后一名炼气士——张三丰,以内家拳、太极剑、丹道,震撼世人。 接着是第二次返祖,第三次返祖…… 直到第九次返祖,李响看着迎面走来的鸿钧虚影,露出了无比灿烂的笑容。人活着无论干什么都挺困难。即使坚守不招惹人的原则都躲不过被人刁难。即使是对的,在金钱和权力的逼迫下变成了错的。人活着是最痛苦的事了,压抑的怒火早已烧毁了心脏。人需要发泄的地方,请来疯狂直播间。尘世浑浊,妖鬼横行,生灵涂炭,唯有杀戮,才能横推此界。淮南大学历史系研究生许攸因意外卷入命案,与刑警支队队长喻归远相识,旧案未破,新案叠出,性格迥异的两人也在案件的不断侦破下,从初识的看不惯到彼此理解,成为惺惺相惜的挚交。
玄幻:本坐从不杀生 少年复仇记! 女帝师尊,让我喊她媳妇? 这星轮居然要认我为主 掠夺诸天万界的生存之旅 石之瞳 男人随心 重生:二郎神助我删号重修 寒门天子 元神圣魂 红尘借道 大衍噬元诀 我在武工队 葬花之月色尽 剑仙转生 异界最强户口本 我握有一个黑夜世界 刍狗的逆袭 随便都能重 我在诸天称无敌 啊不行啊 不要揉啊漫画 外国仁漫画 绑架班长漫画 动漫是动画和漫画的通称.动漫产业是指以"创意"为核心以动画 mu全彩漫画图片 狂神漫画神漫画 同流合屋 漫画 伪娘邪恶服务漫画 relife重返17岁漫画179 毁童年柯南漫画 龙珠超 力量大会漫画 龙珠超 力量大会漫画 胡萝卜漫画图片大全 蓝漠的花漫画什么时候更新 啊不行啊 不要揉啊漫画 孕妇腿肿漫画图片 微信打麻将漫画 relife重返17岁漫画179 绑架班长漫画 埃罗芒阿老师漫画第5卷 蓝漠的花漫画结局 我太受欢迎漫画 绑架班长漫画 龙珠超漫画26预告 伪娘邪恶服务漫画 胡萝卜漫画图片大全 relife重返17岁漫画179 绑架班长漫画 快看热门漫画排行榜 relife重返17岁漫画179 动漫是动画和漫画的通称.动漫产业是指以"创意"为核心以动画 蓝漠的花漫画结局 不嫁总裁家男仆漫画 埃罗芒阿老师漫画第5卷 胡萝卜漫画图片大全 孕妇腿肿漫画图片 禧妃颜雪漫画 同流合屋 漫画 胡萝卜漫画图片大全 禧妃颜雪漫画 孕妇腿肿漫画图片 爆笑校园之表情漫画图片 植物大战僵尸的漫画全集中文版 微信打麻将漫画 龙珠漫画全王 蓝漠的花漫画结局 龙珠超 力量大会漫画 孕妇腿肿漫画图片 恐怖漫画 寻找身体结局 兔死狗烹的漫画 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 这一世我再扬帆 灾厄降临:我能召唤万界 小叶子的幸福生活 全球造神:我,弑神者 人生微尘 百度 百度 百度 百度 百度 同流合屋 漫画 爆笑校园之表情漫画图片 绑架班长漫画 微信打麻将漫画 恐怖漫画 寻找身体结局 狂神漫画神漫画 ジンメン 漫画 回到校园漫画打屁屁 埃罗芒阿老师漫画第5卷 外国仁漫画 恐怖漫画 寻找身体结局 ジンメン 漫画 毁童年柯南漫画 植物大战僵尸的漫画全集中文版 快看热门漫画排行榜 兔死狗烹的漫画 外国仁漫画 爆笑校园之表情漫画图片 毁童年柯南漫画 同流合屋 漫画 龙珠超 力量大会漫画 relife重返17岁漫画179 孕妇腿肿漫画图片 伪娘邪恶服务漫画 埃罗芒阿老师漫画第5卷 龙珠超漫画26预告 恐怖漫画 寻找身体结局 毁童年柯南漫画 不嫁总裁家男仆漫画 回到校园漫画打屁屁 亚星官网 亚星官网 万利官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网