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
狗狗叫多久会停止狗狗脚指甲修剪狗狗叫声是什么意思狗狗姐妹名字泰迪狗狗进口治肺药狗狗叫多久会停止狗狗脚掌为什么会发热狗狗叫声是什么意思狗狗脚掌有死皮狗狗脚掌烫不吃东西狗狗脚掌护理产品狗狗叫声是什么意思狗狗脚掌疼偏了狗狗脚掌护理产品狗狗叫什么名字小汤圆狗狗脚掌烫不吃东西狗狗脚掌为什么会发热是怎么回事狗狗经常打喷嚏流鼻涕狗狗经常打喷嚏流鼻涕狗狗叫的厉害会干呕狗狗脚掌有小硬块狗狗经常打喷嚏流鼻涕狗狗脚掌有死皮狗狗脚爪黑狗狗紧张害怕怎么办狗狗脚趾缝发白狗狗紧张害怕怎么办狗狗脚爪黑狗狗叫的厉害会干呕狗狗脚掌疼偏了番吾之战,桓齮战死,十万大秦锐士魂归九泉。   大秦,内有主和派惧战忧战,军心不稳,   外有韩国摇摆不定,投赵而弃秦。   值此时机,三公子赢天狼挺身而出。   怒打扶苏,口斥朝臣,联姻红莲。   韩王宫签到:获得一万大雪龙骑。   红莲闺房签到:获得铜腰铁骨。   潮女妖床围签到:获得三万背嵬军。   自此,一代绝世皇子横空出世,统六国,平百越,灭匈奴。   黑水龙旗覆盖之处,皆为我大秦疆土!!!古烬在创造女神的空间中醒来,发现自己失去了大部分记忆。在被女神的帮助下,他恢复了记忆,并与女神度过了一段快乐的时光。 一切止与古烬和女神的一场赌约。 他穿越到了女神创造的世界之一,在其中展开了冒险。 (敬请期待)逍遥自然,离奇古怪,理性奇幻。未世来临,无数人变异,无数人死去。人类只能在夹缝中生存,与各种异种周旋,混出一条生路来。姜丰是个小人物,没有什么大志向,可偏偏命运不会放过他,在他的生存路上,无数的危险,无数的恶梦,通通让他碰到,他拼命挣扎,要保全爱人、家人、朋友的生命,也要保全自己的生命,非常难,特别难,但是必须做。 人生逍遥路漫漫,慢修吾心妄烟云, 运极命数皆注定,鼎立混沌独自清。 罄音撩灵安坐钟,终了余生残破魂, 魂归故里望长生,深入宇空宙已寂。 漫定钟生,慢鼎终深。 人运罄魂,云清魂寂。行者,走遍天地间,只为寻求众生存在的真正意义;为求一缕光明和一线生机。《廉颇传奇》讲述了战国时期赵国大将&amp;quot;廉颇&amp;quot;传奇的一生。 看四朝老将廉颇如何侍奉四代性格迥异的赵王??? 如何在纷繁错杂的战国时期,扬名立万—保家卫国—明哲保身—激流勇“进”。。。 本篇著作集朝斗、宫斗、历史、战争、兵法、悬疑、修仙以及二次元等多重角度为一体,为读者展开一幅大气磅礴的战国画卷。。。 作者:高基枫。。。在梦中寻找希望,入轮回窥探过去意外的死亡,沈子昂穿越到了洪荒年代; 废弃的血脉被人唾弃,驱逐! 没想到和自己一起穿越的狗都成为了魔族统领; 殊不知这废弃的血脉竟然是传说中的龙脉。 从此刻起,洪荒年代又多了一个疯狂作死的妖族大帝! “人族之皇啊,走着,去喝两杯?” “妖帝,你为何又要调戏我魔尊的女儿!!” “神王,咱俩去佛界溜达溜达,请他们吃烤肉去!!!” “师傅不好啦,妖帝要去做大保剑,问你去不?” “........” 四界大乱,上古妖魔复活; 妖帝死后魂魄不灭,附身于废柴之身; 一人持太古凶器,踏破苍穹,诛神斩魔!!!苏远携武道修改器一朝穿越,踏入这片光怪陆离的世界。 人间苍茫,众生皆苦,恶鬼食人心,人道满污浊,半夜孤魂扰人清,魑魅魍魉乱大千…… 苦海无涯,何以自渡,唯靠一双铁拳打穿这暗黑乱世! PS:这是一个生死看淡的莽夫物理超度妖魔鬼怪的故事“当时太天真了,以为跟个大哥就有口饭吃,结果……”十三机众人擦擦泪,说:“现在肉都吃撑了,再吃就吃不下去了……大哥别打肉了,再打真吃不完了……什么?晚上还要做肉,老大求你了放我们出去打架吧!” “你们这算啥?”治安署的人一把鼻涕一把泪的说:“以为是两个破小孩拉起个组织要搞事儿,我们都准备好搞了加工资,你这谁想得到我们的治安还更好了……等一下,各位,我先不哭了,好像过了今天我们就是同一个老大了。” 这谁想得到?搞事情的组织还要当头。 这么说,工资的话…… “宣誓了,宣誓了。” 东南三区,并非长久安定;天下之稳,皆因大守门人。 “守门人 李思仁!” “守门人 张耀文!” “守门人 十三机机所有人。” “守门人 春秋战国集团。” …… “还有我还有我,这次我可赶上了。” “张家众人,李达夜和其徒张燚,参上!” 生于雾山,死于雾山,是轩辕若水的宿命,吟的诗词,寄的风月便是轩辕若水。纵使神明野心放纵,也不许寸骨妥协,纵使妖魔四起,那便自起杀尽心!一剑屠魔镇妖,一刀弑神诛仙,血染苍穹,万死以赴,只愿山河无恙,只求人族平安,是人是魔,自己说了算。此后,天下再无神仙,再无妖魔,敢妄自称尊者,皆斩。
兄弟走过的传奇人生 哥布林异界崛起 轮回玉梅林 重生动漫世界穿越 魔域风云之长刀行 师弟你是真的苟 武灵至尊传 天纪:靖帝本纪 奥特幻想之异世界乱入 美漫之绝对掌控 孤 义 雷罚之主 再战诸天 仙帝的强者儿子 星光滴 千年阴谋之谋 黄帝内经续 学霸异世界修仙之旅 龙心大陆第一神帝 封神:我,人皇帝师,摆下先天杀阵 狗狗脚指间长浓泡 狗狗脚掌日常护理 狗狗脚掌为什么会发热是怎么回事 狗狗进口治肺药 狗狗脚指间长浓泡 狗狗脚趾缝红肿流血怎么办 狗狗脚掌为什么会发热是怎么回事 狗狗脚掌烫不吃东西怎么办 狗狗脚趾缝发白 狗狗脚掌烫伤怎么处理 狗狗脚掌痒是怎么回事 狗狗脚掌痒是怎么回事 狗狗叫的厉害会反胃? 狗狗脚掌日常护理 狗狗叫多久会停止 狗狗进口治肺药 狗狗脚掌为什么会发热是怎么回事啊 狗狗脚趾缝发白 狗狗脚指甲掉了能洗澡 狗狗叫声是什么意思 狗狗脚掌日常护理 狗狗叫什么名字小汤圆 狗狗脚指甲修剪 狗狗脚掌护理产品 狗狗脚掌烫不吃东西 狗狗叫的厉害会反胃? 狗狗脚趾缝发白 狗狗脚指甲修剪 狗狗脚指甲掉了能洗澡 狗狗脚趾缝发白 狗狗进口治肺药 狗狗脚掌区分大小狗 狗狗姐妹名字泰迪 狗狗叫多久会停止 狗狗脚爪黑 狗狗进口治肺药 狗狗姐妹名字泰迪 狗狗脚掌为什么会发热是怎么回事 狗狗叫的厉害会反胃? 狗狗叫什么名字小汤圆 狗狗紧张害怕怎么办 狗狗脚掌烫伤怎么处理 狗狗叫多久会停 狗狗脚掌为什么会发热是怎么回事啊 狗狗脚掌护理产品 狗狗脚掌日常护理 狗狗脚掌痒是怎么回事 狗狗紧张害怕怎么办 狗狗叫的厉害会反胃? 狗狗脚掌为什么会发热 亚星官网 亚星官网 亚星游戏官网 亚星官网 亚星官网 九 影 人生有悔 落英诗集 真我传之尘间旧事 朝泗镇怪谈 葡京官网 欧博官网 亚星管理平台 葡京官网 皇冠登3出租 狗狗脚掌烫不吃东西怎么办 狗狗脚掌日常护理 狗狗脚指甲修剪 狗狗脚掌烫不吃东西 狗狗脚掌疼偏了 狗狗脚指甲掉了能洗澡 狗狗脚掌疼一直舔 狗狗姐妹名字泰迪 狗狗脚掌为什么会发热是怎么回事 狗狗姐妹名字泰迪 狗狗叫的厉害会反胃? 狗狗紧张害怕怎么办 狗狗脚掌痒是怎么回事 狗狗脚掌护理产品 狗狗脚掌有死皮 狗狗叫的厉害会反胃? 狗狗脚指甲掉了能洗澡 狗狗脚掌有死皮 狗狗姐妹名字泰迪 狗狗脚掌有小硬块 狗狗脚趾缝发白 狗狗叫声是什么意思 狗狗脚趾缝发白 狗狗脚掌疼偏了 狗狗脚爪黑 狗狗脚掌疼偏了 狗狗脚掌区分大小狗 狗狗脚掌疼一直舔 狗狗叫多久会停 狗狗脚掌为什么会发热是怎么回事啊