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
萌妹子卖萌图片大全美女无奶罩动态图片大全男生霸气流泪头像唯美图片大全外国女生卡通头像图片大全可爱图片大全晚安亲吻动态表情图片大全萌妹子卖萌图片大全欧美男海边照片大全图片唯美图片大全图片大全男生霸气流泪头像唯美图片大全外国美女和小男孩图片大全男人皮的紫色内裤图片大全图片女人加油带字图片大全集男生霸气流泪头像唯美图片大全高清图片qq皮肤图片大全唯美女生小清新图片女人蛋糕图片大全集男生长发的动漫人物图片唯美图片大全图片大全男人皮的紫色内裤图片大全图片欧美男头长发发型图片大全图片大全图片女人背男生的图片大全女人背男生的图片大全萌的歌曲动漫图片大全美女配图说说图片大全女人背男生的图片大全外国美女和小男孩图片大全有趣的卡通情侣头像图片大全集晚安亲吻动态表情图片大全男人戴黑色文胸图片大全外国小孩霸气头像图片大全集有趣的卡通情侣头像图片大全集女人背男生的图片大全美女头后面图片大全集东晋末年,神州陆沉,南北分裂,在这个遍地腥膻,豺狼虎豹横行的乱世中, 他应运而生,挺身而出! 他驱除胡虏,恢复中华,立纲陈纪,救济斯民!百万大军阵前,他临危不惧,面不改色; 士族门阀面前,他八面玲珑,从不妥协; 而对于地位低下的黎民百姓,他反而秋毫无犯,爱民如子。 他就是东晋最后一个军阀,徐骁,徐宗文。 且看他在晋末这片乱世中如何叱咤风云,纵横捭阖?堂堂华夏后裔刘镇宇一觉醒来,却发觉已置身异界:我的妈,我的个爹,好多狮子!还有斑马,哦,这是大象,犀牛,还有河马!…… 不!一一我要回家……为保护女友而伤人的徐枫,入狱三年意外获得一身本领。 没想到出狱后,女友竟然要嫁给当年的仇人。 可怜这瞎眼的女人,本可一步登天,却选择坠入炼狱!欢迎阅读城市套路深,我要回农村,农村路太滑,人人都狡猾。 村医张小飞何德何能,让美女蜂拥而至?财富接踵而来? 我们是生活在一个多维的空间,现在所处的三维空间只是其中很小的一部分,其他空间到底隐藏着什么奥秘需要我们不断地探索。现代人的大脑开发只有10%,就连爱因斯坦的大脑使用率也只有15%。而古时人类大脑使用率是100%。有些事情不是你解释不了就认为不存在,那是因为你的大脑使用率太低了。特异功能的修炼过程也是在逐渐提高人类的大脑使用率的过程,当你的能力达到一定水平之后很多问题将迎刃而解。三生三世终不见,一怒而断忘川河。周青岩突然穿越,父母安康,生活质量高。小弟无数。 哪怕一当一辈子咸鱼也没事。 一场空难,韩涛和邻座的美女流落到了未知的荒岛。没有救援,危险重重,没有见过的野兽,人迹罕至的秘境,与世隔绝的蛮族,沉没在海底的遗失文明……惊险、刺激、还有绝境中人性的善与恶,一切不可抵挡的扑面而来。大魏王朝,妖魔乱世,幽鬼横行。 当顾青玉睁开眼睛醒来之后却发现自己只有七日可活! 无奈之下,只好凭借驯养系统驯养一只青龟,将其化作自己的一个分身! 【叮!是否消耗成长点驯养青龟?】 【驯养成功!】 【青龟等级提升!】 …… 【叮!是否消耗进化点进化天元青龟?】 【进化成功!】 【天元青龟进化成为:天元龟!】 【叮!获得能力‘天元一气’!】 …… 顾青玉发现,自己驯养的分身不但可以不断升级,还可以不断的进化……
傲世医尊 破坏前 全球映射:开局我是满级大佬 长乐永宁 三国:刘备帐下,朝九晚五 逍遥小太监 出色魔术师不是魔术 十年寒暑 傻了吧!你的房客都是美女 中山策 生灭万物 我是坏蛋坏到底 洪荒:我,后羿绝不射日 武牧江湖 奇异规则 开局都没有,生存全靠苟 开局随机选择仙门 辞职去当玄术师 穿越之大侠宋青书 侠与剑 美女邪恶大胸漫画动态图片大全图片大全图片大全图片大全 男人茫然图片大全 欧美男头长发发型图片大全图片大全图片 晚安亲吻动态表情图片大全 美女邪恶大胸漫画动态图片大全图片大全图片大全图片大全 动漫中国古代衣服图片大全 外国教师图片大全 美女胸大的邪恶漫画图片大全图片 男人戴黑色文胸图片大全 高清情侣头像唯美大全可爱图片大全 外国美女和小男孩图片大全 外国两个可爱小孩图片大全可爱图片大全 好看的的少女图片大全图片大全图片 男人茫然图片大全 萌妹子卖萌图片大全 晚安亲吻动态表情图片大全 外国教师图片大全 男人戴黑色文胸图片大全 美女头后面图片大全集 男生霸气流泪头像唯美图片大全 男人茫然图片大全 男生长发的动漫人物图片唯美图片大全图片大全 美女无奶罩动态图片大全 女人蛋糕图片大全集 男人皮的紫色内裤图片大全图片 好看的的少女图片大全图片大全图片 男人戴黑色文胸图片大全 美女无奶罩动态图片大全 美女头后面图片大全集 男人戴黑色文胸图片大全 晚安亲吻动态表情图片大全 女人加油带字图片大全集 外国女生卡通头像图片大全可爱图片大全 萌妹子卖萌图片大全 有趣的卡通情侣头像图片大全集 晚安亲吻动态表情图片大全 外国女生卡通头像图片大全可爱图片大全 欧美男头长发发型图片大全图片大全图片 好看的的少女图片大全图片大全图片 男生长发的动漫人物图片唯美图片大全图片大全 外国小孩霸气头像图片大全集 高清情侣头像唯美大全可爱图片大全 萌狗故事图片大全搞笑 外国教师图片大全 女人蛋糕图片大全集 男人茫然图片大全 外国两个可爱小孩图片大全可爱图片大全 外国小孩霸气头像图片大全集 好看的的少女图片大全图片大全图片 欧美男海边照片大全图片唯美图片大全图片大全 亚星官网 亚星官网 亚星官网 亚星游戏官网 亚星官网 遇见生命之梦 来自虚空的低语者 紫极神魔帝 力荡乾坤 爆笑Z班 皇冠登3出租 澳门葡京游戏官网 澳门葡京官网 皇冠登3出租 亚星官网 外国小孩霸气头像图片大全集 欧美男头长发发型图片大全图片大全图片 男人戴黑色文胸图片大全 外国两个可爱小孩图片大全可爱图片大全 欧美男头长发发型图片大全图片大全图片 萌狗故事图片大全搞笑 外国教师图片大全 美女配图说说图片大全 萌的歌曲动漫图片大全 美女头后面图片大全集 男人皮的紫色内裤图片大全图片 美女邪恶大胸漫画动态图片大全图片大全图片大全图片大全 男人皮的紫色内裤图片大全图片 外国小孩霸气头像图片大全集 美女胸大的邪恶漫画图片大全图片 动漫中国古代衣服图片大全 高清文字非主流壁纸图片大全墙纸图片搜索 有趣的卡通情侣头像图片大全集 外国小孩霸气头像图片大全集 萌的歌曲动漫图片大全 有趣的卡通情侣头像图片大全集 男人茫然图片大全 好看的的少女图片大全图片大全图片 男生霸气流泪头像唯美图片大全 女人加油带字图片大全集 男生霸气流泪头像唯美图片大全 萌的歌曲动漫图片大全 外国女生卡通头像图片大全可爱图片大全 美女配图说说图片大全 欧美男海边照片大全图片唯美图片大全图片大全