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
杭州到临安汽车东站江阴市汽车站到昆山市深圳到许昌汽车多长时间盐城到郑州汽车时刻表常平到顺德大良的汽车站时刻表杭州到临安汽车东站威海铁山汽车深圳到许昌汽车多长时间沙井到横琴汽车站广东省大良汽车站时刻表湘运零陵汽车时刻表杭州到临安汽车东站白花到成都汽车票电话湘运零陵汽车时刻表深圳到许昌汽车多长时间广东省大良汽车站时刻表祁阳到肖家太平的汽车登封长垣的汽车时刻表登封长垣的汽车时刻表成都市龙泉驿汽车总站仁怀到昆明的汽车时刻表霸州到天津西 汽车时刻表寿光滨海到济南的汽车铜陵到昆山南站的汽车站时刻表常平到顺德大良的汽车站时刻表高邮到上海的汽车票盐城到郑州汽车时刻表绵阳至达州汽车票价多少钱成都市龙泉驿汽车总站威海铁山汽车主人公刘星被自己的亲妈刘梅贬低得一无是处,从此决定下定决心离开家去开启自己的军旅生涯,经过一系列的重重考验最终退役和自己的家人幸福生活在一起异世觉醒却不知自己是远古主宰,却不知挚爱也身处异世 。 如蝼蚁却肩负重任 。 故人归红颜来,人生如飞驰终成大能 。 抵破灭创万世辉煌 。关于网游世界中的竞技,争霸,情感的故事。本书正文部分已经完成,总字数106万,情节完整。 【本书纯属虚构,不要较真,看着开心就好,最好不带脑子(狗头)】 【穿越+系统+爽文+无女主】 礼鹤因为车祸去世了,成了反派,还绑定了“反派系统”。 又从系统那得知要集齐1亿积分才能回到他原来的世界。 不过他能够一直穿越,直到集齐1亿积分,回到他原来的世界。 “叮,恭喜宿主完成任务,奖励10000免死金牌。” “叮,恭喜宿主完成任务,奖励10000黄金。” “叮,恭喜宿主完成任务,奖励10w积分。” “叮,恭喜宿主完成任务,奖励……” 富士山喷发?小日子沦陷?全球灵气复苏?人人可修行?当飞机撞上了御剑飞行,当轮船碰上了水上漂,当汽车跑不过人,这是道德的沦丧还是人性的扭曲?欢迎走进高武世界,一探究竟!!!这是一个总是被提起却又被带过的话题,更多的看客也是调侃。 可当这一切发生在自己身上的时候,才能清楚的体会到如此纯粹的恶意。 被辱骂,被殴打,被叫做猪猡,被夺走一切。 它叫做霸凌,是弱者聚集在一起对更弱小者实施的行为。 可如果弱者变为强者,当他们身份开始互换的时候,一切又会怎样发展呢…… 张峰是一个大学生,还是良好市民,但是却进了监狱。 张峰想老老实实蹲个监狱,却学了武功还缓了刑。 张峰想复仇,却谈了个女朋友要结婚!恢复记忆的他发现世人皆想要他命,幸得先祖玉皇大帝传授改良功法和师兄秦始皇嬴政馈赠,然而他发现这倒霉功法突破方式太过奇葩,有人修仙靠灵气,有人修仙靠仙气,他修仙居然靠挨揍。在蓝星他靠挨揍不断突破,报家仇、平内乱、一统天下,荡平蚩尤余孽,破道成仙。 他以这倒霉功法重踏仙途,机缘巧合之下发现了这倒霉功法的BUG,为求突破到处抓壮丁,只为用他们的攻击换取突破机缘,开启挂机突破模式。 随着等级越来越高,寻常壮丁已然不能满足他的需求,他把魔爪伸向仙魔妖域,闹得仙魔妖域人心惶惶,仙帝也退避三舍。 “妖帝!张青那厮又来了!” “什么?!那家伙又来抓壮丁了?!快开启妖族大阵!” 防道仙师是他自己起的仙号,但仙魔妖域都称他万恶奴隶主! 他的仙途格言是:修为再高也怕菜刀?你把菜刀放下!用仙器!我需要一顿酣畅淋漓的胖揍!穹庐山, 两位青年仗剑而立, “今天你我二人,以登临当世剑道绝顶。本该由此一战。” “算了吧,打过又不止一次了,十年后,再等十年,你我若还在这江湖,我必然会给你一个满意的答复!” 十年后是,天源21年。 至此,江湖上人人称道的,二十一役,正式埋下伏笔。一个有为的年轻人,通过黑洞穿越到了一个遥远的无人知晓的星球
Cicada young 隐匿的数字 网游之诸天降临 打鬼记之校园 元素星球 红尘诉求 我不是棋子 丧尸围城:我拥有终极魔典 天下第一卦 陆地剑仙:剑阁守剑八十年 聊一个斋 不谓仙 改变时空的神器 宁断之 摘星! 玄幻:我是气运大反派 胭脂河 我的兄弟是战神 无敬 科希世纪 南皮到东光的汽车电话 广东省大良汽车站时刻表 祁阳到肖家太平的汽车 登封长垣的汽车时刻表 南皮到东光的汽车电话 扬州到机场汽车时刻表查询 广州到黄江汽车站 南充到遂宁汽车时间 高邮到上海的汽车票 白花到成都汽车票电话 寿光滨海到济南的汽车 寿光滨海到济南的汽车 铜陵到昆山南站的汽车站时刻表 广东省大良汽车站时刻表 汉口至南京汽车票查看 常平到顺德大良的汽车站时刻表 龙华汽车站到龙岗总站 高邮到上海的汽车票 仁怀到昆明的汽车时刻表 杭州到临安汽车东站 高淳到南京南站汽车票 深圳到许昌汽车多长时间 江阴市汽车站到昆山市 霸州到天津西 汽车时刻表 南充到遂宁汽车时间 铜陵到昆山南站的汽车站时刻表 高邮到上海的汽车票 江阴市汽车站到昆山市 仁怀到昆明的汽车时刻表 高邮到上海的汽车票 登封长垣的汽车时刻表 高淳到南京南站汽车票 盐城到郑州汽车时刻表 杭州到临安汽车东站 铜陵到昆山南站的汽车站时刻表 常平到顺德大良的汽车站时刻表 平湖到三水汽车站几点 广州到黄江汽车站 铜陵到昆山南站的汽车站时刻表 平湖到三水汽车站几点 常平到顺德大良的汽车站时刻表 淮南到开封的汽车 成都市龙泉驿汽车总站 龙华汽车站到龙岗总站 湘运零陵汽车时刻表 高淳到南京南站汽车票 寿光滨海到济南的汽车 常平到顺德大良的汽车站时刻表 苍南到合肥汽车票网上订票 威海铁山汽车 亚星官网 亚星游戏官网 亚星官网 亚星官网 亚星游戏官网 大秦:金榜降世,祖龙求我监国 地球篇天使降临 摩天行 成仙之前 恶魔之剑的诞生 亚星游戏官网 万利官网 欧博游戏官网 亚星游戏官网 葡京官网 铜陵到昆山南站的汽车站时刻表 广东省大良汽车站时刻表 寿光滨海到济南的汽车 仁怀到昆明的汽车时刻表 沙井到横琴汽车站 淮南到开封的汽车 平湖到三水汽车站几点 霸州到天津西 汽车时刻表 威海铁山汽车 广州到黄江汽车站 威海铁山汽车 苍南到合肥汽车票网上订票 祁阳到肖家太平的汽车 寿光滨海到济南的汽车 寿光滨海到济南的汽车 淮南到开封的汽车 高淳到南京南站汽车票 江阴市汽车站到昆山市 杭州到临安汽车东站 平湖到三水汽车站几点 深圳到许昌汽车多长时间 高邮到上海的汽车票 白花到成都汽车票电话 广州到黄江汽车站 扬州到机场汽车时刻表查询 铜陵到昆山南站的汽车站时刻表 扬州到机场汽车时刻表查询 湘运零陵汽车时刻表 绵阳至达州汽车票价多少钱 成都市龙泉驿汽车总站