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
我们住在一起 电视剧密战电视剧土豆网我们住在一起 电视剧韩剧继承者们电视剧全集在线观看蜡烛海湾电视剧杨门女将电视剧迅雷下载陈乔恩黄晓明电视剧李小璐电视剧 百度云下载镇魂街电视剧什么时候更新一集最新韩国电视剧2015年2014年大女主电视剧有哪些我们住在一起 电视剧猎杀电视剧11到20集仲夏夜电视剧李小璐电视剧 百度云下载最新韩国电视剧2015年常力雄电视剧版谁演的绝不认输 电视剧百度云绝不认输 电视剧百度云有没有关于李白的电视剧少年魔法电视剧绝不认输 电视剧百度云镇魂街电视剧什么时候更新一集著名古装电视剧蜡烛海湾电视剧赵薇演的电视剧有哪些韩剧继承者们电视剧全集在线观看著名古装电视剧有没有关于李白的电视剧猎杀电视剧11到20集周元意外的穿越到了全职猎人世界,触发了魔王契约,从此开挂,召唤魔界力量,吊打各路大神,带着主角团开始各种冒险,然后就各种宝藏收入囊中,想存老婆本,然而出来混总是要还的。作为人,我们的一生已经告终。或许带着些许的遗憾与不甘。 但,故事远没有结束。 遗忘在历史深处的计划再度重启,我们也终于踏上了从未想象过的高度。不再为人的我们,正逐渐登上神的宝座。 此世已无可避免地堕入深渊,而人生已经结束的我们,无能为力。唯有磨砺自己的力量与意志,在漫长的时光中感悟,才能在彼岸的智慧中找到拯救此世的途径。 神,从不是特权的象征。在我们眼中,那是终将背负起的责任。高田真一“小兰女士,你也不想新一君遭遇不测吧?” 小兰“这... 高田真一“小哀酱,你也不希望柯南君有生命危险吧?” 小哀“这...穿越洪荒百万年,还是玄仙修为   林长青绝望之际,师尊通天赐予九转金丹   没想到,竟然觉醒诸天赠送系统!   赠送九转金丹,返还百亿功德!   赠送通天剑符,返还神象镇狱劲!   赠送黄中李,返还混沌灵根!   赠送盘古精血,返还……   林长青行走洪荒,赠送无数宝物,杀妖,屠魔,救人族!   终于,当量劫降临之时,林长青一人横立量劫之前,挥手扫灭无边劫云!这里没有玄幻,没有穿越;只有新活的生命,逻辑的真实。 这是一个虚构的故事;一个关于生意与情怀的故事。一群年轻人,在小说主人翁李非的带领下,历经千辛万苦,克服重重困难,在小城香州,书写了一段商业传奇。香水星河酒店,一个给予了无数客人美好记忆,承载着一群酒店人理想的航器,在到达了它辉煌的顶峰后,突然掉头…… 结果怎么样?为什么会这样?是历史的悲剧,还是人生的释然?——一千个读者就有一千个哈姆雷特——如果你想得出自己的结论,请阅读天界无际的小说《香水星河》。剑去池空一水寒,游人来此凭栏干。世间万事消息尽,只有青山好静观。 叶乘风只是想安安稳稳的在穿越后活下去。但命运却不停逼迫着他前进。逼着他成为人们口中的侠天下事,世间事,不过都是一剑的事。 两剑的话,太麻烦了。武林绝学重出江湖,上到大门派,下到小刀客,都为之痴狂,且看破落门阀后人宁启如何快意江湖~宇宙初始,源石赋予星球灵气诞生文明。蓝星源石被盗,进入末法时代,有一少年觉醒,踏上奇幻征程。 凤凰之血,涅槃重生,魔刀清玉,黑暗力量涌动,源石之谜,末法时代因灵珠灵气复苏,灵珠和源石有何关系?清玉刀,卦台山,两仪塔,先天灵源,源石,灵珠,又有何关联? 一刀,一人,两棺材,我司钰必将踏平异界 人类在宇宙之中孤独嘛?人类为何发现不了外星文明?你了解这个世界嘛?生命因合而诞生因合而毁灭?宇宙外面是什么?微观世界存在嘛?一切的源头是什么?终极世界是什么? 一切可能的答案尽藏于书中,一生铸一书,一书看一世,无尽宇宙藏奥妙,笑看红尘守本心,万千世界有关联,莫问姓名你我他,缘起万物一念生…………
方宗 重生:回到老婆死亡那一天 洪荒:我,后羿绝不射日 洛羽战歌 我的天哪! 寻灵使者 回到了家 清宫皇妃 重生:回到八零当首富 我能记起的回忆 全球轮回从生化危机开始 一知往事 重生之奋斗进行曲 和她一起办案的日子 中州造神记 天生剑帝 元宇宙天宫 流浪的零零后 我的皇室血统 空无是实有,无尽的妙用 摩诃婆罗多电视剧结局 女生让我看电视剧 常力雄电视剧版谁演的 蜡烛海湾电视剧 摩诃婆罗多电视剧结局 好家伙 电视剧片花 在路上电视剧每集介绍 鬣狗电视剧优酷06 赵薇演的电视剧有哪些 猎杀电视剧11到20集 镇魂街电视剧什么时候更新一集 张家辉翁虹合作的电视剧 苏青邓佳佳什么电视剧 女生让我看电视剧 杨门女将电视剧迅雷下载 蜡烛海湾电视剧 在路上电视剧每集介绍 赵薇演的电视剧有哪些 少年魔法电视剧 我们住在一起 电视剧 女生让我看电视剧 李小璐电视剧 百度云下载 密战电视剧土豆网 仲夏夜电视剧 最新韩国电视剧2015年 苏青邓佳佳什么电视剧 赵薇演的电视剧有哪些 密战电视剧土豆网 少年魔法电视剧 赵薇演的电视剧有哪些 蜡烛海湾电视剧 女生让我看电视剧 刘恺威有演过什么电视剧有哪些 杨门女将电视剧迅雷下载 著名古装电视剧 蜡烛海湾电视剧 刘恺威有演过什么电视剧有哪些 常力雄电视剧版谁演的 苏青邓佳佳什么电视剧 李小璐电视剧 百度云下载 韩剧继承者们电视剧全集在线观看 电视剧观看感受 香港高楼电视剧 张家辉翁虹合作的电视剧 仲夏夜电视剧 女生让我看电视剧 张家辉翁虹合作的电视剧 韩剧继承者们电视剧全集在线观看 苏青邓佳佳什么电视剧 陈乔恩黄晓明电视剧 亚星官网 亚星游戏官网 亚星官网 亚星官网 亚星游戏官网 古怪博士 本公子讲歪道理,你讲什么 奇怪侦探所 幻法天下 江湖不归人 万利游戏官网 欧博游戏官网 欧博官网 万利游戏官网 AG真人 电视剧观看感受 陈乔恩黄晓明电视剧 摩诃婆罗多电视剧结局 常力雄电视剧版谁演的 猎杀电视剧11到20集 张家辉翁虹合作的电视剧 蜡烛海湾电视剧 仲夏夜电视剧 绝不认输 电视剧百度云 少年魔法电视剧 在路上电视剧每集介绍 少年魔法电视剧 香港高楼电视剧 我们住在一起 电视剧 少年魔法电视剧 猎杀电视剧11到20集 杨门女将电视剧迅雷下载 韩剧继承者们电视剧全集在线观看 刘恺威有演过什么电视剧有哪些 著名古装电视剧 摩诃婆罗多电视剧结局 绝不认输 电视剧百度云 陈乔恩黄晓明电视剧 张家辉翁虹合作的电视剧 在路上电视剧每集介绍 女生让我看电视剧 苏青邓佳佳什么电视剧 我们住在一起 电视剧 最新韩国电视剧2015年 鬣狗电视剧优酷06