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年商品房一年期贷款利率欠银行信用卡怎么贷款商业贷款一个人可以吗商品房一年期贷款利率钱站两笔贷款商品房一年期贷款利率2015年商业房贷 公积金贷款利率商贷转组合贷款好嘛商贷转组合贷款好嘛汽车怎么做按揭贷款上大学要贷款吗商贷转组合贷款好嘛商铺贷款年龄要求钱站贷款审核查征信么商贷未还完 公积金贷款买房吗商业贷款利率是年利率还是月利率商贷开发商指定银行贷款汽车能抵押给银行贷款钱站贷款怎么算商业贷款一个人可以吗一个宅男穿越到日本战国时代,逢凶化险,不断适应成长的历险故事。李复,一个22岁矿工,末世发生后偶得地下避难所系统。 他在地下造房收租,造餐厅有肉吃,造水厂有干净水用,造武器武装幸存者,造基因库帮助幸存者进化突破。造药房便宜出售,你在别的地方买不到的药我这里都有。 李复地下城的租客任何人见了都要礼让三分,说不定租客就身负超级血脉。 想住进李复的地下城吗?想过神仙般的日子吗?那就看你有没有那个运气了! 一家人的命运因为一个孩子就此改变!上古世界,神魔共舞,凶兽横行,修士纵横…… 这一切终归跳不出天道法则的支配。 净世法则之下,一切皆归虚无。 毁灭不过一瞬间,重塑辉煌却需无数岁月。 天道崩灭,推倒重塑,谁甘心再入轮回! 这是一个人与妖相争的世界,无数人前赴后继只为同一个信仰,可销烟散尽后,隐藏在背后的是更大的绝望…… 我听见来自地狱的呼喊 横死的人们哀鸿遍野 断臂的勇士不畏死生 眼盲的灵魂声嘶力竭 孤独的残肢心有不甘 英雄的尸骨铺向深渊[本书无女主+纯爽文+无限被动+黑暗风] 异世界开启,全世界的人都陷入游戏当中,而苏笑发现自己竟然能无限升级被动技能,而从这时开始,星海世界里面就流传出一个传说。 这是关于一个男人,一把弓箭,射爆全世界的故 事。 弓箭啊!你有看见那个敌人吗? ”娘子,就是他欺负我!你揍他“说完这句话的白许,不由的想起几年前的那一切的开端,当时白许作为一名普通的小贩只想过平凡的生活,然而在一个风和日丽的下午,一天一群高大威猛的士兵突然过来掀了他的摊子,并把他绑走说要他成为公主的丈夫? [主角+反派+系统+无敌搞笑流]、[双主角+主角+反派] 主角叶小青,穿越异世界拥有的无敌升级系统,从此以后,对于他从此以后发暂,他自己要默默的卷,他叶小青要默默的努力,低调的发展,争取有一天可以惊艳所有的人,让他们为自己感到骄傲。走上人生巅峰的道路。 ,,,, 反派,林展,他就是一个恶魔在林家简直是无恶不作,无法无天。 天天就知道,坑蒙拐骗,还会仗势欺人,把年轻的林家弟子们,直接吊的打。 却自认为自己从小少年便觉得自己就潜力不凡,天资聪颖,天赋异禀,拥有的无敌之姿, 后来林展,明白了一件事情,他老爹就是一个冷血无情没有感情的人。 便想的离开,这个让少年寒心的,冰冷无情的父亲,想着去看看远方。 本少爷的征途就是那无尽的璀璨辉煌,光彩夺目的星空与大海。 ,,,,现代都市和平生活并未持续多久。当平行的世界被人们挖掘到信息,位面重叠,世界重启。这里变成了修行者的世界。无尽的尸海,广阔的荒漠,万族林立,百家争霸,无情的杀戮将一切虚幻斩断,而何处才是人类栖息之地?定要揣测创世神尊的意图 处于万镜框邸尘 虚竟具有了灵气意识 萌发了自掌命运之力开始摆脱天道束缚 创世神道尚不明白 而他不明白自己在混沌彼岸中创造的宇宙球 遭到了主创至神的干预 一场诸神之战的帷幕由此拉开 至此主世界和无穷次世界的轮回不在按照先前的轨迹运行 万界中传奇存在 柯罗诺斯 月司神使 圣歌咏者 释迦魔尼 蔷薇之影 这等超脱凡神之辈 亦或秦始荒 亚历山大这等人皇 等等 皆乱入了这场无边浩劫 自由意志表象世界 拥有与被拥有 背叛还是坚守没有哪个存在能够明了 甚至位于虚缥恍惚中的至高神殿 主创至神也在镜之边缘徘徊 因为道心动摇 法则之力分配不当 导致黑暗规则之书拥有了自我意识 主创至神境界跌落 能够唤回丢失的存在吗 阻止浩荡劫难的发生 免于幽羽邪主的吞噬 且看天启之诸神之战 天堂地狱 高贵低贱 一念永恒还是刹那 尘言为了心中所爱 自由 川美 永恒 同时亦是为了印证那无上大道 于万界生灵中遨游 战斗 解密求知.的故事 永恒绝非幻梦 风格唯美诡暗穿越反套路.是个荟聚万族的天启传说
恐怖死亡游戏 冷轻侯之梦断回魂 人生模拟:开局被邪教绑架 人间华夏史 穿越十年,从离婚开始出道 公子风流 郑熙破面撞物异世人生巅峰 永恒的无上邪尊 一介俗人 灰渊增殖 任天高,纵我行 再无敌一次 军中情报人 丧尸的自我修养 一半为魔一半仙 唐沉记 呼喊 无敌,从十万分身开始 诸神童话 源法师 科技梦境 商业贷款利率是年利率 商品房一年期贷款利率2015 商业房贷 公积金贷款利率 商贷转组合贷款好嘛 商业贷款利率是年利率 汽车之家申请了贷款吗 商业房贷 公积金贷款利率2015 商铺按揭贷款 抵押贷款 商业贷款利率是年利率还是月利率 商业贷款一个人可以吗 商铺贷款年龄要求 商铺贷款年龄要求 钱站贷款审核查征信么 商品房一年期贷款利率2015年 钱包手机贷款下款快么 商贷未还完 公积金贷款买房吗 商业房贷 公积金贷款利率2015 商业贷款利率是年利率还是月利率 上大学要贷款吗 欠银行信用卡怎么贷款 商品房一年期贷款利率2015 钱站两笔贷款 上海 名下有贷款 买房吗 商代多久下来贷款 商铺按揭贷款 抵押贷款 钱站贷款审核查征信么 商业贷款利率是年利率还是月利率 上海 名下有贷款 买房吗 上大学要贷款吗 商业贷款利率是年利率还是月利率 商贷转组合贷款好嘛 商品房一年期贷款利率2015 商贷开发商指定银行贷款 欠银行信用卡怎么贷款 钱站贷款审核查征信么 商贷未还完 公积金贷款买房吗 商品房还完贷款怎么办 商业房贷 公积金贷款利率2015 钱站贷款审核查征信么 商品房还完贷款怎么办 商贷未还完 公积金贷款买房吗 商铺按揭贷款 抵押贷款吗 汽车怎么做按揭贷款 商业房贷 公积金贷款利率2015年 商代多久下来贷款 商品房一年期贷款利率2015 商铺贷款年龄要求 商贷开发商指定银行贷款 钱站贷款怎么算 商业房贷 公积金贷款 亚星官网 亚星官网 亚星官网 亚星游戏官网 亚星官网 我影响了世界 一个被修仙耽误的人才 黑色的王座 龙皇战尊 系统,系统! 澳门葡京游戏官网 葡京官网 快连下载 澳门葡京游戏官网 欧博游戏官网 汽车怎么做按揭贷款 商品房一年期贷款利率2015年 商业房贷 公积金贷款利率2015 商代多久下来贷款 上海 名下有贷款 买房吗 商业贷款一个人可以吗 商代多久下来贷款 汽车怎么做按揭贷款 商业贷款利率是年利率还是月利率 汽车之家申请了贷款吗 商业银行信用贷款审批 上海 名下有贷款 买房吗 商业房贷 公积金贷款利率2015年 钱站贷款怎么算 商品房还完贷款怎么办 商业贷款中间部分还款 商业银行信用贷款审批 商品房一年期贷款利率2015 商业房贷 公积金贷款利率 商贷转组合贷款好嘛 上海 名下有贷款 买房吗 商业贷款一个人可以吗 汽车怎么做按揭贷款 汽车怎么做按揭贷款 商业房贷 公积金贷款 商业房贷 公积金贷款利率 商铺按揭贷款 抵押贷款吗 上大学要贷款吗 商业房贷 公积金贷款利率2015 钱站贷款审核查征信么