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
叩仙门 石三 小说免费小说阅读 离婚总裁别撩我叩仙门 石三 小说魂血 二饭 小说猎艳红唇 小说进化成神 幸子妙颜 小说高中生 小说可乐侠 金圈 小说江湖我独行 心之弈剑 小说小说 位面商人有眼泉写的怎么样贾政奋斗史 桥夕 小说叩仙门 石三 小说火影小说网当我不再爱你 未楹 小说可乐侠 金圈 小说小说 位面商人有眼泉写的怎么样痴情冷王无情妃 水木夕阳 小说主角用剑的小说里面有神剑山庄 主角自创独孤九剑 修真小说主角用剑的小说里面有神剑山庄 主角自创独孤九剑 修真小说位面客商 浪花点点 小说调戏三国 跳跳虫 小说主角用剑的小说里面有神剑山庄 主角自创独孤九剑 修真小说江湖我独行 心之弈剑 小说长生 西凤瘦马 小说猎艳红唇 小说关于天网的小说 主角姓叶魂血 二饭 小说长生 西凤瘦马 小说位面客商 浪花点点 小说火影小说网沈千军一梦醒来,回到了妻女身边。 那些让他遗憾的事情,再不会发生。 男儿能重来一次,定不负时光所托…… 成和败努力尝试 ,人若有志应该不怕迟 ,全力干要干的事; 做个真的汉子 ,人终归总要死一次; 无谓要我说道理 ,豪杰也许本疯子 ; 同做个血性男儿 ,愿到世间闯一次; 成败也不再犹豫 ,用我的真心真意; 怀着斗志向竞争的圈里追…… 在一个强者林立的世界,万亿物种生灵衍生,不断地突破自身,打破天理禁锢,追寻命运之根本,长生之久视! 一个平凡普通的人族少年,从一个小村落走出,搅动风云,气吞山河,开启一个新时代!我是个反派,并且我本来就是反派,无重生穿越,闭关20载,重出江湖,世人将为我颤抖,我就爱滥杀无辜,你管的着? 大侠?死去吧你简介天启十四年,叛军攻破长安城,太子萧长歌被迫流落江湖。 在此期间,萧长歌中原万里行。江湖恩仇,诸侯混战,本无心卷入天下纷争的萧长歌识遍天下高人,武功不断提升。也慢慢知晓了乱世之中的苍生苦难。终于重拾王霸之心,以江湖之远的浪子之身再入庙堂龙吟。叶轩重生到高考一个月前 为了不让自己这个渣男伤害她的叶轩决定和她保持距离。 趁着这时候慕容雪没喜欢自己 叶轩准备透露点高考题目让她稳上青华 而自己去临安到时候天南地北,确没想到高考后看到她的录取通知书傻了眼宇宙的深处。 时间的未来。 那里有着未知的文明。 张买提带领着12个美女仿真机器人穿越星河,成功降临九宝大陆。 做为外星人,他们将会面临着怎样的挑战? 又如何开启自己的生存之路? 如何让新的文明在异界大陆上遍地开花? 地球上的科技、文明,是否能够与修炼界的法术、仙人相抗衡? 智慧生命的未来将会走向何方? 啪! 醒木一拍,道的是江湖风风雨雨人情世故,道的是少年鲜衣怒马快意恩仇。 道的是将军醉卧沙场处之泰然,道的是侠客借酒消愁一情难断。 道的更是那听书人听到深处意犹未尽,却只能听见一句: “欲知后事如何,且听我下回分说!” "三阴绝脉"者,史书所载;凡患此症者非但终生不能修武,并且几乎无一人能侥幸活过十三岁。命运关上所有的幸运之门,却开了一扇窗,令其在绝境中峰回路转,当其踏着尸山血海攀上巅峰之时,骇然发现一个惊天之秘。暮然回首,惊觉自己脚下的这片世界幌若恒河之沙粒,渺若微尘。何去何从……普通大学毕业生,没人脉,没势力,通过自己的努力,成为国内工控行业的先行者。
他和他的剑 零充为王 娱乐:在封杀边缘疯狂试探 众生平等 万物归零 是谁在敲响丧钟 界王之神 超元旅者 无字天书之仁武天下 第八界:阎罗 韵之界:帝君 磨天楼,破阵三界 我的手机有妖怪 体育之星 第二区 魔法:超魔禁师 妖精的契约签订 吹下晚风吧 从红楼开始的诸天聊天群 一个弱者的英雄梦 非典型调查报告 调戏三国 跳跳虫 小说 当我不再爱你 未楹 小说 情感小说 推荐 魂血 二饭 小说 调戏三国 跳跳虫 小说 机甲时代的巨星传奇 桃花三月 小说 高中生 小说 好想好想谈恋爱小说 免费小说阅读 离婚总裁别撩我 声色流转 苗亦有秀 小说 淫无极小说 痴情冷王无情妃 水木夕阳 小说 让爱回首 三月微草 小说 贾政奋斗史 桥夕 小说 位面客商 浪花点点 小说 幕府风云 克里斯韦伯 小说 高中生 小说 免费小说阅读 离婚总裁别撩我 江湖我独行 心之弈剑 小说 法师传奇2 麻烦 小说 当我不再爱你 未楹 小说 进化成神 幸子妙颜 小说 丹神 繁痕 小说 猎艳红唇 小说 贾政奋斗史 桥夕 小说 让爱回首 三月微草 小说 免费小说阅读 离婚总裁别撩我 丹神 繁痕 小说 江湖我独行 心之弈剑 小说 免费小说阅读 离婚总裁别撩我 幕府风云 克里斯韦伯 小说 当我不再爱你 未楹 小说 可乐侠 金圈 小说 法师传奇2 麻烦 小说 关于天网的小说 主角姓叶 幕府风云 克里斯韦伯 小说 叩仙门 石三 小说 高中生 小说 让爱回首 三月微草 小说 叩仙门 石三 小说 幕府风云 克里斯韦伯 小说 小说 位面商人有眼泉写的怎么样 现代男同志小说 短片 痴情冷王无情妃 水木夕阳 小说 猎艳红唇 小说 当我不再爱你 未楹 小说 淫无极小说 魂血 二饭 小说 现代男同志小说 短片 高中生 小说 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 某人你好 学科之战 预世录 神医下山:我的绝美未婚妻 绝地求生之夺冠之路 百度 百度 百度 百度 百度 长生 西凤瘦马 小说 让爱回首 三月微草 小说 淫无极小说 主角用剑的小说里面有神剑山庄 主角自创独孤九剑 修真小说 小说 位面商人有眼泉写的怎么样 长生 西凤瘦马 小说 丹神 繁痕 小说 美人少爷 燃夜 小说 叩仙门 石三 小说 江湖我独行 心之弈剑 小说 免费小说阅读 离婚总裁别撩我 进化成神 幸子妙颜 小说 机甲时代的巨星传奇 桃花三月 小说 书库default 舞若小说网 让爱回首 三月微草 小说 魂血 二饭 小说 主角用剑的小说里面有神剑山庄 主角自创独孤九剑 修真小说 猎艳红唇 小说 现代男同志小说 短片 痴情冷王无情妃 水木夕阳 小说 位面客商 浪花点点 小说 主角用剑的小说里面有神剑山庄 主角自创独孤九剑 修真小说 进化成神 幸子妙颜 小说 位面客商 浪花点点 小说 声色流转 苗亦有秀 小说 法师传奇2 麻烦 小说 可乐侠 金圈 小说 小说 位面商人有眼泉写的怎么样 幕府风云 克里斯韦伯 小说 免费小说阅读 离婚总裁别撩我 亚星官网 亚星官网 万利官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网