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
翻毛皮加针织面运动鞋的价格蛇蝎膏药价格甜杨桃价格水獭绒价格春兰组培苗价格翻毛皮加针织面运动鞋的价格汇澄茶油价格甜杨桃价格混凝土梁凿除价格a2牛奶价格faciate牛奶价格甜杨桃价格安陆天星粮油机械价格faciate牛奶价格节育环哪种好2015价格a2牛奶价格食用茶油价格绿林贝全脂纯牛奶价格春兰组培苗价格库普拉玉米价格王牌曲面55寸电视价格绿林贝全脂纯牛奶价格混凝土梁凿除价格2016年全国瓦楞纸价格九州E本的市场价格蓝镜喷价格九州E本的市场价格观赏鸽小黄金鱼价格库普拉玉米价格健步牌伸缩看台价格 李昱穿越十年,用仅记得的十几首歌送给妻子。   没想到就此捧红,一飞冲天成为天后。   李昱也成为天后背后的男人。   可是当他出不了歌,妻子事业正当红时突然提出离婚,并表示事业比他更重要。   也在这时触发神级人气系统。   李昱表示,不装了,摊牌了。   我是天王巨星!天生早衰体的绝世术师,地宗传人,为续命而寻找昆仑龙脉,恰逢古尸妖变,为全天地正道,接地脉龙气斩妖。 ”没吃饭吗?不想死就给老子快点。“ 噗,黑暗的大寒矿洞中,瘦骨嶙峋的王长安及族人正双眼失神,麻木的被压迫着。 是揭竿而起? 举族祭祀,掩埋于地下的青铜图腾,消逝的远古,揭示着血淋淋的真相.......这是一本同人小说,续写的萧潜发在17K小说网的玄幻作品《秒杀》。本书从2014年11月29日开始创作,在创作前已经征得他本人的同意。 《秒杀》的质量上乘,故事情节虽不泛前后矛盾之处,但是创意新颖,脑洞很大。唯一的遗憾就是结尾收的太仓促,看得人如梗在喉,非常难受,考虑再三后,我决定自己写一本秒杀续。     考虑到现在的读者,恐怕已经没有多少人看过《秒杀》了,所以我对开头部分做了一定的修改,尽量弱化本书对《秒杀》的依赖,实在绕不开的地方,就以回忆杀的方式简单交代几句。   所以现在这本书,是一本全新的小说。出于对萧大大尊重,简介就算是对他的作品的宣传,但是你不必专门去看《秒杀》,也一样能看本书,不会出现情节衔接不上的情况,因为即使是我,也已经忘记了《秒杀》里面的情节。    这里是一个名为天元大陆的地方,在这里没有炫迈的魔法,更没有斗气,真气等。有的只是繁衍到巅峰的灵力。等级为灵者、灵士、灵师、灵君、灵王、灵宗、灵皇、灵圣、灵尊、灵至尊。意外穿越《火影》世界,却觉醒了《海贼》世界的兑换系统,不仅可以学习海贼世界的技能,还可以装备兑换的人物卡。你有最强防御,我有卡普铁拳,你有白眼我有见闻色霸气,卡卡西你有火遁,土遁……你是不是不把我老沙放在眼里,我这个海贼世界的五五开倒是要跟你这个世界的五五开碰碰。当一个文明到了最后阶段会发生什么?死亡还是重生,要战争还是要和平。从银河中心的搜寻者带来的究竟是一个开端还是一个结束。子文明又如何尽快赶上对弈敌人的风口。“观察者先生,我们两个世界的发展,多谢有您”(这本书我尽量在讲主线的同时,会把基本和重要信息交代下,避免人物形象和情节不够完整)什么是教育,当前的教育存在那些痛点,当代大学生又该如何实现自己的教育抱负,且看林苍松是怎么做的…… 谁说选择教师,就是选择清贫。 谁说嫁人不嫁教书匠。 只要你有足够才华,有超凡的实力。 教师也可以做到数钱数到手抽筋。 也可以坐拥香车宝马,身边美女如云。 试看林苍松如何一步步走向事业人生的巅峰....... 不知源头何处的神秘星球,在芸芸众生皆不曾反映之际,降临到了太阳系地外虚空,遮天蔽日,扰乱了时分。而钟挺原本平凡无奇的人生也发生了翻天覆地的变化,不得不一直逆天而行······ 大道为络,天地作星,众生如子。一场谁也逃不开的博弈就此展开。 叩仙门,觅神迹,自是横刀向天笑! 叶辰懂医术,会古武,下山后的他,还在幻想着自己逍遥纵横都市,吊打一切不服! 万万没想到,参加自己婚礼的时候,新郎竟然不是他……“什么?原来我是恶魔?” 十六岁那天,‘穿越者’阎墨终于等来了属于自己的灿烂。 ------------------------------ ‘普通人类’加入恶魔学园学习成为恶魔的故事,大概会涉及入间同学入魔了,家庭教师,猎人。
异世界众横 全球惊悚:我再不死,就真无敌了 穿越,人类最强手拿把掐 烽火魔临 一世成仙 乾坤阴阳图 太上难忘情 星赐之缘 渡余生 猿王 山狼 重游人间 我在末世搞建设 我是流浪者 白日列车 仙帝重生:反派女帝竟想做岳母 登天仙途 小王的成长故事 我绑架了未来女帝 大宇宙之三界之战 耐克蓝镜面发售价格 二手玉米磨面机价格 食用茶油价格 春兰组培苗价格 蛇蝎膏药价格 观赏鸽小黄金鱼价格 食用茶油价格 苍南紫菜加工厂价格 蓝镜喷价格 安陆天星粮油机械价格 黛莱美bb霜价格是多少钱一盒 黛莱美bb霜价格是多少钱一盒 室内假山盆景和价格图片 二手玉米磨面机价格 翻毛皮加针织面运动鞋的价格 春兰组培苗价格 白象大东三福精炖猪骨面价格 耐克蓝镜面发售价格 1992-1 50分整版邮票价格 甜杨桃价格 二手玉米磨面机价格 甜杨桃价格 1992-1 50分整版邮票价格 绿林贝全脂纯牛奶价格 a2牛奶价格 室内假山盆景和价格图片 耐克蓝镜面发售价格 蛇蝎膏药价格 1992-1 50分整版邮票价格 蓝镜喷价格 春兰组培苗价格 日本艾诗缇价格官网 水獭绒价格 翻毛皮加针织面运动鞋的价格 2016年全国瓦楞纸价格 九州E本的市场价格 水獭绒价格 食用茶油价格 2016年全国瓦楞纸价格 节育环哪种好2015价格 九州E本的市场价格 苍南紫菜加工厂价格 库普拉玉米价格 白象大东三福精炖猪骨面价格 faciate牛奶价格 日本艾诗缇价格官网 黛莱美bb霜价格是多少钱一盒 九州E本的市场价格 室内假山盆景和价格图片 穗花杉价格盆景 亚星官网 亚星官网 亚星官网 亚星游戏官网 亚星官网 一剑擎天殿 泡沫宇宙 末世求生:开局到账1000亿 建座地府当后宫 逆势崛起之我能改命 皇冠登3出租 亚星管理平台 澳门葡京官网 皇冠登3出租 亚星官网 翻毛皮加针织面运动鞋的价格 春兰组培苗价格 食用茶油价格 蛇蝎膏药价格 安陆天星粮油机械价格 黛莱美bb霜价格是多少钱一盒 二手玉米磨面机价格 蓝镜喷价格 穗花杉价格盆景 甜杨桃价格 甜杨桃价格 2016年全国瓦楞纸价格 2016年全国瓦楞纸价格 蛇蝎膏药价格 耐克蓝镜面发售价格 混凝土梁凿除价格 翻毛皮加针织面运动鞋的价格 春兰组培苗价格 穗花杉价格盆景 1992-1 50分整版邮票价格 水獭绒价格 白象大东三福精炖猪骨面价格 日本艾诗缇价格官网 耐克蓝镜面发售价格 汇澄茶油价格 翻毛皮加针织面运动鞋的价格 翻毛皮加针织面运动鞋的价格 白象大东三福精炖猪骨面价格 黛莱美bb霜价格是多少钱一盒 健步牌伸缩看台价格