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
女生好玩的微信头像动漫情侣头像大全浪漫超拽气质霸气漂亮女头像男生很萌的卡通头像高清阳光头像女女生好玩的微信头像女生和小狗头像图片超拽气质霸气漂亮女头像黑色的卢字头像女生和小狗头像寂寞黑白头像男生孤独动漫图片大全女生好玩的微信头像双影头像女寂寞黑白头像男生孤独动漫图片大全超拽气质霸气漂亮女头像女生和小狗头像元彻的头像对一个人失望的个性网名女生头像对一个人失望的个性网名女生头像过于爱你伤了自己头像头像高清搞笑青纯女头像男生头像微信图片背影双影头像女头像高清搞笑女生和小狗头像黑色的卢字头像黑色中分动漫男生头像微信头像 男 流氓过于爱你伤了自己头像在历经无数生死之后,那最终迎来的一切只是开始,历史似乎一直在轮回中。 有着衍生资源美名的梦谕,被世人称作神明的遗物,曾有人掌握他,却带来毁灭性的灾害。 名为魇的怪物与人类一般无二,在梦谕吸收着扭曲的情感以及不幸因素。从而造就成极端的能力与性格。 及时如此,危险的怪物在梦谕濒临瓦解时被人类捕获。成为了满足欲望的工具与珍贵的交易品…… 一只逃避追杀的魇在雪地里昏睡,被路过的红衣男孩所救。在无形之中建立了契约关系,而那男孩便是世间罕有的契师。 故事的开端打开,能够完全操控魇的契师诞生。旧时代的往事将被重新掀开,梦谕的正面目也即将显露 一个少年的恋爱故事幽默穿越爽文,喜欢的朋友赶紧前来围观咯!首次在17K发表小说,还请大家多多支持!谢谢、谢谢、谢谢!(重要的事都要说三遍,呵呵!) 约尔:先生我们的飞船已经离开本宇宙了。 男子:好的,我们继续航行。 约尔:了解,先生。但是不唤醒佳爱琉没问题吗? 男子:我是故意把她留下来的。等她醒了之后会追上我们的。 约尔:明白,先生。 ........七年之后 约尔:先生我们到达新宇宙了,根据检测这里是一个魔法宇宙。 男子:传说中的魔法宇宙吗,找个世界降落吧。 约尔:好的,先生。 大夏境内,乱世妖魔横行,世人于恐惧中挣扎求存。 有飞天遁地的修士,有通晓占卜的天机师。 武者,不过是妖魔的口粮,最美的佳酿。 然,陈平穿越了,他携带武学无限加点系统,一头扎入了这个诡异横行的世界。 别人都是法术乱飞,对抗妖魔。 陈平贴身肉搏,直接掀开了横推诡异世界的大幕。 “生死看淡,不服就干!” 陈平看着乌泱泱的鬼物,妖魔大军淡淡道。 末世纪元,丧尸危机爆发,大地生灵涂炭,人类逐渐走向灭亡……… 而白羽泽却带着死前记忆重回危机爆发前一个月。 “迷茫之中,该何去何从?” 规划、防守、武器订购、受难者基地崛起…… 危机面前,是生,还是死? 历史给予我新生,我必将改写历史! 在此,请见证,新时代的到来………… 菩提--盘古之心所化,与本元为友,广招门徒,合道为祖苏浩偶然发现当自己接触到命案凶手所使用的凶器时,就会意识穿越附身在作案时的凶手身上,见证命案的经过。后被当做犯罪侧写型人才,作为编外特聘人员加入警队,从此开启了查案追凶生涯……秦人席道全偶遇楚人蓝世云,先后错抓进府首府衙行医,不久楚暴发虫病,席道全被召为医者,不少医者因无法治好虫病被杀,席道全逃至楚,与蓝世云重逢,又一同入秦救治民众,得到秦人赞颂。后秦君驱三十万虫病大军伐楚,蓝世匀任拒敌前锋迎战秦军,秦军闻蓝世匀之名,纷纷弃械休战,请求治疗虫病,蓝世云与席道全一同摆汤药阵为三十万秦军治病。但此时虫病传入楚,楚君得知蓝世匀与秦人席道全一同曾为敌军治病,先囚禁了蓝世匀的上司卢世宗一家,又捉拿蓝世匀与席道全,席道全趁机卷走银子逃回秦,秦君也剩机再次驱重兵攻占楚,楚君无奈启用卢世宗,同时命蓝一出与施药救治楚民,卢世宗力退九部联军,席道全也在被俘人之中,又重与蓝世匀一同到民间治疗虫病,此时战败的秦君通过外交召回席道全,其它小国也来求医,不久,在一次聚会中,众王子误杀州首之子,虫病渐渐消失……
穿越之大侠宋青书 洪荒历 小杜的日常 我只想毁灭世界的啊 合约车司机 幽灵兵王在都市 光辉的印记 598 都市人生传奇 带着师妹讨生活 国联:世界战争 重生:我是一只科技狼 唱歌就能救妹妹,我唱疯了 三国:开局被曹操封护国瑞兽 无限绝境 日出时的乐队 灵异阴书 大秦:苟成陆地神仙,被金榜曝光了! 精灵之暗黑潮流 毁坏的三观 情侣头像这就是最幸福的事 女生和小狗头像 元彻的头像 对一个人失望的个性网名女生头像 情侣头像这就是最幸福的事 吃货头像女生背影喝奶茶 别哭头像 关于吃货头像 高傲淡漠头像 双影头像女 男生头像微信图片背影 男生头像微信图片背影 披发手当头像 女生和小狗头像 微信头像情侣意境 高清阳光头像女 孙悟天基友头像 高傲淡漠头像 头像高清搞笑 女生好玩的微信头像 动漫头像伤感夕阳 超拽气质霸气漂亮女头像 动漫情侣头像大全浪漫 青纯女头像 关于吃货头像 披发手当头像 高傲淡漠头像 动漫情侣头像大全浪漫 头像高清搞笑 高傲淡漠头像 对一个人失望的个性网名女生头像 动漫头像伤感夕阳 男生很萌的卡通头像 女生好玩的微信头像 披发手当头像 高清阳光头像女 头像活泼可爱 别哭头像 披发手当头像 头像活泼可爱 高清阳光头像女 黑色中分动漫男生头像 过于爱你伤了自己头像 孙悟天基友头像 寂寞黑白头像男生孤独动漫图片大全 动漫头像伤感夕阳 男生头像微信图片背影 高清阳光头像女 伤感男生哭泣头像动漫头像 女生和小狗头像图片 亚星官网 亚星官网 亚星游戏官网 亚星官网 亚星官网 最后的人偶师 纆染 游戏世界之我是NPC 衣冢 诸神听命 万利游戏官网 欧博官网 皇冠登3出租 万利官网 快连下载 男生头像微信图片背影 微信头像情侣意境 动漫头像伤感夕阳 头像活泼可爱 女生好玩的微信头像 微信头像 男 流氓 超拽气质霸气漂亮女头像 高清阳光头像女 双影头像女 对一个人失望的个性网名女生头像 吃货头像女生背影喝奶茶 寂寞黑白头像男生孤独动漫图片大全 吃货头像女生背影喝奶茶 男生头像微信图片背影 兄弟关联头像 女生和小狗头像 过于爱你伤了自己头像 关于吃货头像 男生头像微信图片背影 双影头像女 关于吃货头像 高傲淡漠头像 黑色中分动漫男生头像 女生和小狗头像图片 情侣头像这就是最幸福的事 元彻的头像 高清阳光头像女 孙悟天基友头像 高清阳光头像女 过于爱你伤了自己头像