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
有一首歌女生唱的里面歌词我说喜欢你的名字子和爱笑的样子the way you look tonight 歌词过去歌词i have a dream westlife 歌词有句歌词是挚爱大地的孩子漂泊是唯一的坚强这首歌是什么??有一首歌女生唱的里面歌词我说喜欢你的名字子和爱笑的样子一半歌歌词过去歌词歌词有坚强五更里歌词歌词多少字过去歌词幽若歌词歌词多少字something's gotta give中文歌词五更里歌词tears of love miniizahia歌词jya-me white sweet love 中文歌词jya-me white sweet love 中文歌词歌词 对你的思念没有终点 在我的眼里 还能对你说再见弹棉花歌词jya-me white sweet love 中文歌词歌词有坚强有一首歌一点点歌词是暴风雨中我看到了阳光和你坚强的模样阳光男的唱的if you let me spoon tonight歌词百度love story mariah carey歌词if you let me spoon tonight歌词有一首歌一点点歌词是暴风雨中我看到了阳光和你坚强的模样阳光男的唱的歌词 对你的思念没有终点 在我的眼里 还能对你说再见幽若歌词赵铭伦认为, 住对门的林洛伊是他的一生之敌; 从小到大,林洛伊没少告他的状,拆他的台,揭他的短! 直到生日这天, 赵铭伦居然获得了,能任意改变林洛伊身体的能力! 本以为这下子能彻底拿捏她, 万万没想到,林洛伊竟然……我们登上并非我们所选择的舞台,演出并非我们所演出的剧本。猎人与猎物的身份发生了变换,原有的社会体系遭受冲击。世界不复太平,战争变得随处可见。 “我只想活下去,让身边的人活得好一点。”林奕由衷祈愿。一位现初二的男学生的真实生活,随便写写,在不高兴的时候可以抒发一下。也请大家支支招,这样最好。世界变了! 不知何时,以前的妖兽需要度雷劫,修炼者没有雷劫,但现在反过来了。   以前的修炼者突破境界失败,养伤还能再战。但现在一旦失败,就是恐怖异变的开始,人不是人,鬼不是鬼。   整座天地好像都在打压人族,仿佛除了人族之外,一切种族都在突飞猛进的成长……少年翩翩归来,三界为之动容。 神族主宰三界,魔族野心勃勃,狐族足智中立,凡族势单力薄。 神魔大战后的三千年,四海八荒又面临一场浩劫,镇魔神塔昊天塔下落不明,谁能力挽狂澜,保天下太平?在空灵大陆上,修为决定着每个人的命运。大陆上,人的修为分为融体境,坚身境,铸心境,幻灵境,天元境,破玉境,芥子境,真元境,虚仙境,天神境,能登上天神境的强者少之又少,男主元翼在磨难中一步一步成长,在他向往的世界里,爱过,失去过,被人背叛过,终成一代强者。符者,天地孕育。人画鬼驱,魂引源归,方容万物!本书作者新手他日若遂凌云志,敢笑黄巢不丈夫 凌云与同事一起被召唤至异世界。虽然同事们接连显现战斗取向的特殊能力,但凌云却始终只拥有平凡的能力。在异世界仍为最弱的他,竟被某位同事恶意推落了深渊。 在找不到方法逃脱的绝望深渊中,凌云命中注定地邂逅自己的挚爱,寻得了以平凡的身份造就最强的道路。 “我保护她,她守护我。这样我就是最强的。我要扫荡一切,超越全世界。” 坠落深渊的少年与挚爱,两人联手打造的全盛异世界奇幻故事,如今正式揭开序幕。 一次意外,世界顶级雇佣兵穿越到异世界,成为了银龙城附近的猎人。 十几年过去,他一直以为自己穿越而来只会成为一个闲散的猎人,每天只会钓钓鱼,抓几只兔子,摘几株药材换酒钱打发时间,最大的乐趣不过是调戏邻居的小女孩。 但在他十五岁的凛冬日,村子里最强大的猎人大胡子离奇失踪,无奈之下,庭瑞只得踏入到苍茫山脉寻找大胡子的踪迹。 越过茫茫群山,踏过无数冰雪,他终于找到了大胡子在坚冰上刻下的痕迹。 但令人费解的是,上边只留下了一个潦草的“鬼”字便再无其他痕迹。 就在林庭瑞感到疑惑沉下心思思考的时候,他的身后突然响起了喀嚓喀嚓的踩雪声……
元界追凶 混沌书 大人,现在是妖灵时代 人狼学园 大小姐的偷心保镖 天赐使徒 此之谓间谍 溪尘 破天机系列之残马渡阴兵 星际元帅在七零 破碎的秩序:往年似事 洪荒:我,人皇燧人氏,加入聊天群! 混沌七诀之剑指天元 绿和他以外的颜色们 信鸿战纪 修吾记 老子就是反派! 卡师指南 魔主在校园 娘子息怒啊 糊涂歌词 一半歌歌词 the way you look tonight 歌词 歌词中有些让我再把吉祥话儿说一遍是什么歌曲有其他歌手翻唱的吗 歌词 对你的思念没有终点 在我的眼里 还能对你说再见 过去歌词 the way you look tonight 歌词 淘汰的歌词 有一首歌女生唱的里面歌词我说喜欢你的名字子和爱笑的样子 英雄联盟乱感觉歌词 百度love story mariah carey歌词 百度love story mariah carey歌词 something's gotta give中文歌词 一半歌歌词 jya-me white sweet love 中文歌词 五更里歌词 一遍歌词 糊涂歌词 乐流歌词 歌词多少字 一定很爱我歌词 歌词多少字 乐流歌词 一首很可爱的韩文歌词里有one two ready go tears of love miniizahia歌词 i have a dream westlife 歌词 糊涂歌词 乐流歌词 乐流歌词 有一首歌女生唱的里面歌词我说喜欢你的名字子和爱笑的样子 歌词中有些让我再把吉祥话儿说一遍是什么歌曲有其他歌手翻唱的吗 一定很爱我歌词 有一首歌歌词中唱到跟胆小的男孩说声拜拜.这歌叫什么? jya-me white sweet love 中文歌词 something's gotta give中文歌词 五更里歌词 有一首歌歌词中唱到跟胆小的男孩说声拜拜.这歌叫什么? the way you look tonight 歌词 something's gotta give中文歌词 时代曲歌词 有一首歌一点点歌词是暴风雨中我看到了阳光和你坚强的模样阳光男的唱的 i have a dream westlife 歌词 弹棉花歌词 有一首歌歌词中唱到跟胆小的男孩说声拜拜.这歌叫什么? 糊涂歌词 有一首歌女生唱的里面歌词我说喜欢你的名字子和爱笑的样子 the way you look tonight 歌词 幽若歌词 有句歌词是挚爱大地的孩子漂泊是唯一的坚强这首歌是什么?? 歌词中有些让我再把吉祥话儿说一遍是什么歌曲有其他歌手翻唱的吗 亚星游戏官网 亚星官网 亚星官网 亚星官网 亚星官网 花生油不会孤单 斩神灭仙传 魔法专业的学霸们别内卷了 一念左一念右 鉴诡手记 欧博游戏官网 皇冠登3出租 亚星管理平台 欧博游戏官网 亚星管理平台 英雄联盟乱感觉歌词 过去歌词 五更里歌词 一首很可爱的韩文歌词里有one two ready go 歌词中有些让我再把吉祥话儿说一遍是什么歌曲有其他歌手翻唱的吗 i have a dream westlife 歌词 the way you look tonight 歌词 时代曲歌词 tears of love miniizahia歌词 英雄联盟乱感觉歌词 tears of love miniizahia歌词 有一首歌女生唱的里面歌词我说喜欢你的名字子和爱笑的样子 淘汰的歌词 i中文歌词 弹棉花歌词 幽若歌词 歌词中有些让我再把吉祥话儿说一遍是什么歌曲有其他歌手翻唱的吗 一遍歌词 something's gotta give中文歌词 有句歌词是挚爱大地的孩子漂泊是唯一的坚强这首歌是什么?? if you let me spoon tonight歌词 有一首歌一点点歌词是暴风雨中我看到了阳光和你坚强的模样阳光男的唱的 一定很爱我歌词 英雄联盟乱感觉歌词 乐流歌词 歌词 对你的思念没有终点 在我的眼里 还能对你说再见 有一首歌一点点歌词是暴风雨中我看到了阳光和你坚强的模样阳光男的唱的 五更里歌词 歌词 对你的思念没有终点 在我的眼里 还能对你说再见 过去歌词