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
巧虎找不同小游戏青蛙小游戏吃糖果的小巧虎找不同小游戏大全抢挖掘机的游戏下载安装切树叶游戏巧虎找不同小游戏射击游戏射箭巧虎找不同小游戏大全青蛙跳到荷叶游戏亲嘴手机游戏亲吻游戏真人版大全集巧虎找不同小游戏青少年网上益智游戏亲吻游戏真人版大全集巧虎找不同小游戏大全亲嘴电影游戏抢抢游戏手机游戏切树叶游戏切树叶游戏抢挖掘机的游戏下载青蛙跳到荷叶游戏数学亲球游戏攻略青蛙跳到荷叶游戏抢挖掘机的游戏切手指中文游戏抢人车的游戏抢挖掘机的游戏下载安装抢人车的游戏叫什么名字抢挖掘机的游戏下载青少年益智课外游戏爱情、婚姻是文学永恒的主题。 爱情婚姻的种类也有很多。有一见钟情的,有青梅竹马的,有父母包办的,有媒人介绍的,有迫于现实的,有追求梦想的有邂逅之爱,也有共患难之爱。 同时你也可以分情欲之爱、游戏之爱、友谊之爱、依附之爱、利他之爱、现实之爱。 大叔控主人翁老刘历经婚姻失败,大起大落,心灰意冷,人世沧桑,过着无欲无求,百无聊赖地隐居生活。 一次偶遇,一次机缘,这颗已经蒙上厚厚灰层的心,还会再次火热地跳动起来吗? 整个小说都贯穿着人生的智慧,平实的生活,指点人生迷津,平复焦躁内心。 小说里有火热的恋情,痛苦的失恋,无私的友情,惊险的诉讼,激烈的商战,公司智慧经营等情节。 跌宕起伏,情感细腻,大段的心理独白,美丽的风景描写。 泉者,古钱也。人人过手之物,国运之承载,气运之具象,降妖伏魔的无上法宝。作者交流群:564714397。本书由“莲妖声工厂”进行演播。一座有着历史创伤的繁华都市,一片人心险恶的江湖,一群精明能干的警察,几个盘踞已久的社团,一个曾经大佬的儿子,如何在这波谲云诡、大风大浪中明哲保身?兄弟还是兄弟么?生意还是生意么?爱情还是爱情么?所有的道义、江湖、谋略、情爱,一副关于城市的地下江湖的历史画卷,都在这里慢慢展开......众生心,我之心;众生愿,我之愿;无量众生轮回劫,一朝顿悟道心见。诸天由我,万法由心;众生杀道凡尘现,一入量劫天地变。红尘炼心,诸天炼我,唯我道尘撒万界;我心由我不由天。我命亦由我无天!幸运与不幸,冥冥之中自有定数。幸运也好,不幸也罢,既然来到了这世间,怎么也得好好看看,这是个怎样的世界! 贺宏己是一名十九岁的大学生,三观正,爱国家,家境富有,但是钱财来源多是他那唯利是图的父亲收敛来的不义之财,曾被贺宏己多次匿名举报。 有一天一个女孩告诉他父亲,如果再行不义之事,报应将会降临在你的后代之身,果不其然,在贺宏己的父亲想要挖掉英烈之墓建造房产时,贺宏己便意外坠楼了,这一切贺宏己都不知道是如何发生的。 在坠楼的一瞬间,贺宏己来到了一片空白的空间内,他遇到了一个穿着绿裙子的女孩,这个女孩改变了贺宏己的一生,她给予了贺宏己特殊的能力,把他带到了武工队传奇的世界里。 刘天莫穿越了,只想老老实实的做个大闲人,但奈何实力不允许。 内忧外患,愣是逼成了救世主,无所不能! 种田,发展工业,驱除外侵…… 且看我,如何成为一代枭雄!虚拟现实游戏《冷兵器时代》发售,它硬核的游戏设计和相当于现实中地球3倍体积的世界,让它在发售之前就受到了全民的追捧。 当然,地球共和国亚洲区公民朱天云作为一名历史扮演爱好者和历史爱好者,也是毫不犹豫的预定了一台机器,成为了这个世界中的穆拉多伯爵。然而,一个可怕的阴谋,就十分不起眼的隐藏着在这个制作精良的游戏中。 号角震天,群鸦蔽日,军旗招展,长矛林立。 漫天黄沙之中的古拉姆奴隶战士、武艺高强的军事修会骑士、东方草原上弯弓射雕的勇士、寒冷的北国土地上踏着整齐的步伐,昂首挺胸向着前方缓缓推进的重装步兵……战乱不断,血洒战场! 贵族们的尔虞我诈,针锋相对;百姓们的生活不易,民不聊生;士兵们对受封田产、带着累累的战功和数目令人眼红的战利品解甲归田、儿孙满堂、不愁吃喝的美好盼望……一个有血有肉的世界,等待您的探索! 慢热,永不收费,主角会以一个普通人的方式进入游戏,没有不同于他人的方面(包括系统,运气等)法师们目空一切,贵族们高高在上,大商会只手遮天;在这人吃人的世界里,我看到了深渊的触角,文明的退化,和微弱的希望。 在苏城医院最近传来了件件诡异的事件,听陈峰的哥们孟庆华讲,在苏城医院里有位叫张天楚的医生回来了,据说他已经去世两三年了的。可是,确实出现在了医院里,自从他出现在医院后,就发生了种种诡异的事件,病人的失踪,红色旗袍的女子,医院阅览室等等。孟庆华推荐陈峰探长给张明生院长,让陈峰潜入医院内部进一步的调查,张院长同意了孟庆华的推荐。于是,陈峰潜入了医院内部,开始了更加艰难的调查之中......
中州生死诀 传说之带来明日的朝霞 娱乐:重回女儿去世前,爆红全网 我开高达砍真仙 神作?这种游戏我有一堆 我在恐怖游戏里封神 霹雳元武 秦帝传说 灾源降临:开局重生 都市:我算命超准 仙帝重生异世界之旅 灰色居间者 兴安岭日记一卷 剑指云水间 人在三国,开局收吕布当义子 网游:肉搏祭祀 枯木蝉鸣 签到几亿年,他无敌啦! 我真的不想这么好运啊 清风化尘录 抢人车的游戏 亲嘴电影游戏 抢抢游戏手机游戏 切树叶游戏 青蛙小游戏吃糖果的小 抢人车的游戏叫什么名字 青蛙换位游戏试玩 亲嘴真人游戏 抢人车的游戏叫什么 青少年网上益智游戏 青蛙跑酷小游戏 青蛙跑酷小游戏 抢挖掘机的游戏 亲嘴电影游戏 巧虎找不同小游戏 切手指中文游戏 青蛙冒险过关游戏 抢人车的游戏 青蛙跳接力游戏 巧虎找不同小游戏大全 亲觜游戏 巧虎找不同小游戏大全 青蛙跳接力游戏 亲球游戏攻略 亲嘴手机游戏 抢挖掘机的游戏大全 抢人车的游戏 青蛙跳接力游戏 青蛙跳到荷叶游戏数学 抢人车的游戏叫什么 切树叶游戏 亲觜游戏 抢挖掘机的游戏下载安装 巧虎找不同小游戏 抢挖掘机的游戏 切手指中文游戏 抢挖掘机的游戏下载安装 青蛙换位游戏试玩 抢挖掘机的游戏 巧虎找不同小游戏大全下载 切手指中文游戏 亲嘴真人游戏 抢挖掘机的游戏下载 青蛙冒险过关游戏 亲吻游戏真人版大全集 亲觜游戏 青蛙跑酷小游戏 切手指中文游戏 抢挖掘机的游戏大全 抢抢游戏手机游戏 亚星官网 亚星官网 亚星游戏官网 亚星官网 亚星官网 三界焚尊 深秋时节 万祖 净身出户的我火爆娱乐圈 因山之名 亚星游戏官网 万利游戏官网 万利官网 亚星游戏官网 葡京官网 亲嘴电影游戏 射击游戏射箭 抢人车的游戏叫什么名字 巧虎找不同小游戏 青少年网上益智游戏 抢挖掘机的游戏大全 青蛙冒险过关游戏 巧虎找不同小游戏大全下载 抢人车的游戏 亲嘴电影游戏 亲嘴电影游戏 抢挖掘机的游戏 抢挖掘机的游戏大全 青蛙小游戏吃糖果的小 巧虎找不同小游戏大全下载 抢挖掘机的游戏下载 亲觜游戏 切树叶游戏 青蛙换位游戏试玩 巧虎找不同小游戏 亲嘴真人游戏 青蛙跑酷小游戏 亲觜游戏 抢人车的游戏叫什么 抢抢游戏手机游戏 亲嘴电影游戏 巧虎找不同小游戏大全 抢人车的游戏叫什么名字 抢挖掘机的游戏 青蛙跳接力游戏