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
污漫画公车系列无翼鸟CF邪恶漫画集污漫画护工污漫画全集鸟污漫画日妈妈污漫画公车系列无毒啪啪漫画污漫画护工无码里番3d全彩漫画屋尾漫画污脑洞漫画污漫画护工无惨三国梦想漫画图片污脑洞漫画污漫画秘密情人3d屋尾漫画无力狂犬耽美漫画污漫画无比翼鸟污漫画日妈妈污漫画出轨28无码里番3d全彩漫画集污漫画无比翼鸟无码里番3d全彩漫画无翼鸟爱丽丝邪恶漫画污漫画全时间集无翼鸟lol漫画全集视频短片污漫画全时间集无翼鸟爱丽丝漫画污漫画出轨28无惨邪恶漫画孑然一身的出租车司机孟一,“机缘巧合”之下认识了神秘的女人,又“无意间”牵扯进地府的斗争之中,废弃的酒店、神秘的鬼城、数不尽的鬼屋阴宅,一个又一个阴谋逐渐浮出水面。阴谋与阳谋,明争与暗斗,死亡究竟是结束还是开始。最诡异的是孟一发现,自己早已去世的双亲竟然也牵涉其中……穿越到大乾王朝的陈河,入赘叶家,本想着这辈子要不做个赘婿吧。   混吃等死算了。   谁想到新婚妻子娇艳如花,奈何天生体弱,红颜多薄命。   一本《伤寒论*小青龙汤》救了新婚的妻子。   一本《本草纲目》本奉为万世医典。   《神农本草经》济世悬壶,引得天下医道追逐。   多年以后,看着自己的济贤堂开遍大乾,陈河本想着这辈子也就这样过吧,娶个七八房媳妇,生个十几个娃,但没想到大乾内乱。   一纸诏令直达应天。   宣:陈河入宫!陈凡本是富家公子,却因被人陷害,父母住院,公司破产,为了救父被迫入赘,却再次被人陷害,父母死亡,为了报仇,加入军队,十年后重返……一个原本尽享天伦之乐的韩夜,却突遭横祸,一夜间与爹娘天人相隔,为找出仇家,韩夜勤勉修行,一步一步变强,持手中剑横扫不平事,最后发现几年前的满城灭门案竟是别人天大阴谋的开始……人类不能再生活在恐惧中。 没有东西能保护我们,我们必须保护我们自己。 当其他人在阳光下生活时,我们必须在阴影中和它们战斗,并防止它们暴露在大众眼中,这样其他人才能生活在一个理智的,普通的世界中。 我们控制,我们收容,我们保护。 — The Administrator天生至尊,为人族斩妖除魔!护人族万垂不朽!江宇泽前世遭兄弟的反水,亲朋的质疑,爱人的背叛,不幸陨落。烟消道散之时,竟发现在这大千世界之中,源灵大陆只不过是一粒尘埃。万年后得以重生,挖掘新的力量,开创新的规则,以源灵大陆为基础,向未知探索!摊主不卖烟不卖酒,出摊就是流水的摆谱,只为用最深的夜熬最新鲜的黑眼圈,你又满腹忧愁,我也照收不误。我想写一篇这样的小说,总体还是穿越历史,争王争霸的题材。但因我一直从事人力资源方面的工作,在工作的过程中遇到了各类对人力资源不重视,忽视、鄙视甚至无视的企业。因此希望将HR也就是人力资源的理论和知识,融入到古代国家建立、发展,民生,战争等各个方面,体现人力资源的价值。清末民初是个动荡不安的年代,同样也是英雄辈出的年代。李氏家族由无到有,由兴盛再到衰落,时间鉴证了这一切。他们不屈不挠,拼搏奋斗的精神,将永远激励我们不断前行。威武华夏!本作为《驱魂录》的前传,主要以玄冥的视角来讲述那六年里发生的一些奇闻怪事。你准备好了吗?故事即将开始......
飞人传奇 不会吧,还能怎样御兽? 我在另一个世界的那些年 离鸿少年游 全民忍术,开局选择六道斑 玄幻,我要诛了这三界! 死亡推理之追狱人 玄元者奇闻 快穿止戈为武 重回1993 现世高手 退婚!我要修剑 上岸日记 念力之域 恐悬 天庭小灵官 青森的风铃 别人修道我修妖 吾本布衣,提三尺剑取天下 无敌大帝之灵气大陆 无翼鸟lol漫画全集视频 巫女服漫画无修改 无力狂犬耽美漫画 污漫画日妈妈 无翼鸟CF邪恶漫画集 无翼鸟爱丽丝漫画 无力狂犬耽美漫画 无惨漫画lol 无翼鸟lol漫画全集视频短片 无惨三国梦想漫画图片 无码巨乳漫画全集 无码巨乳漫画全集 无翼鸟爱丽丝学园邪恶漫画 巫女服漫画无修改 污漫画公车系列 污漫画日妈妈 无脸情侣漫画图片搜索 无翼鸟lol漫画全集视频 无码里奈邪恶漫画 污漫画护工 巫女服漫画无修改 污漫画护工 无码里奈邪恶漫画 污漫画无比翼鸟 屋尾漫画 无翼鸟爱丽丝学园邪恶漫画 无翼鸟lol漫画全集视频 无码里奈邪恶漫画 无码里奈邪恶漫画 无翼鸟lol漫画全集视频短片 污漫画日妈妈 污污漫画全集免费 污漫画全集鸟 污漫画公车系列 无翼鸟爱丽丝邪恶漫画 污漫画全时间集 污漫画全集鸟 无力狂犬耽美漫画 无翼鸟爱丽丝邪恶漫画 污漫画秘密情人3d 污漫画全时间集 无惨漫画lol 污漫画出轨28 无脸情侣漫画图片搜索 污脑洞漫画 污污漫画全集免费 无码巨乳漫画全集 污漫画全时间集 无翼鸟爱丽丝学园邪恶漫画 无格日本邪恶漫画 亚星游戏官网 亚星官网 亚星官网 亚星游戏官网 亚星官网 禁灵军 百年风雨王家村 我的兄弟是战神 美漫之绝对掌控 荒村游记 万利官网 皇冠登3出租 百家乐官网 万利官网 欧博官网 污漫画无比翼鸟 污漫画日妈妈 无码巨乳漫画全集 污漫画无比翼鸟 巫女服漫画无修改 无脸情侣漫画图片搜索 屋尾漫画 污漫画父女 无惨三国梦想漫画图片 污漫画父女 无翼鸟lol漫画全集视频 污漫画公车系列 无毒啪啪漫画 污漫画全集鸟 无格日本邪恶漫画 无翼鸟lol漫画全集视频 无脸情侣漫画图片搜索 无格日本邪恶漫画 污漫画出轨28 无力狂犬耽美漫画 无码里番3d全彩漫画 无翼鸟爱丽丝学园邪恶漫画 无码里番3d全彩漫画集 无脸情侣漫画图片搜索 无翼鸟CF邪恶漫画集 巫女服漫画无修改 污漫画全集鸟 屋尾漫画 无翼鸟lol漫画全集视频短片 无码里奈邪恶漫画