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
女孩主题漫画图片大全下载地址男生动漫图片全身图片大全陪我疯图片大全皮卡丘简单的q漫画图片大全qq头像男情侣动漫头像图片大全可爱头像女孩主题漫画图片大全下载地址男人和女漫画图片大全图片大全图片大全陪我疯图片大全男生qq背影图片大全唯美男韩国头像图片大全2015款图片大全图片男高清图全身图片大全图片女孩主题漫画图片大全下载地址男男爱欧美动态图片大全图片欣赏男高清图全身图片大全图片陪我疯图片大全男韩国头像图片大全2015款图片大全图片男人说说图片带字图片大全唯美伤感图片动漫爱情的头像图片大全唯美图片大全图片大全集动漫爱情的头像图片大全唯美图片大全图片大全集女孩头像小清新图片大全2015款男生侧面头发漫画图片大全动漫戴围巾的女生图片大全男神图片霸气高清图片大全男士的下体图片大全图片大全图片大全图片大全qq头像男情侣动漫头像图片大全可爱头像男生狐狸头像图片大全大图皮卡丘简单的q漫画图片大全男士背影 高清图片大全唯美伤感图片大全集女孩头像小清新图片大全2015款男男爱欧美动态图片大全图片欣赏【双人格,腹黑,成长,修炼】 天地初开,万物苏生,上苍一笔,划分阴阳,天生双星,互照双地,阳照大地,人族兴旺,月阴蔽日,万鬼复苏,人鬼两界明争暗斗,交接之处名为诡地,诡兽横生。 李十三在人鬼两界之间游走,杀恶人,屠恶鬼。李十三在善恶的之间徘徊,在不断地杀戮中实现自我救赎。 李十三在这残酷黑暗的世界不断挣扎,行走在人性的崩毁边缘。 看李十三踏遍尸山血海,成就无上真仙。  这是全人类的末世。   物种变异。   物质生灵。   妖魔鬼怪横行。   人类危矣。   没人能确定是否能看到曙光。   所有人怀揣着绝望去寻觅它。   哪怕这是全人类的末日,   也要在死神或命运的棋盘中挣扎,   用尽最后一口气,   不休。   ps:后期世界观会扩大的,别方。“任何人任何事都不能阻止我开荒种田”,“毁我田地者虽远必诛”,“坏我收成者挫骨扬灰”——聂歌。 这是一个充满灵气的世界,人、妖、海兽共存于世,同时在山的那边海的那边存在神秘的“十灾”。 打工人聂歌于偶然之间来到这方世界开启了开荒种田系统。 四菜一汤、火箭大炮、仙丹功法、绝世神兵…… 只有想不到没有种不出,地有多大产人有多大胆。没“粮”我唯唯诺诺,有“粮”我重拳出击。 于霜:我要成为一代女帝平定妖乱、开疆拓土。 刘梦亮:我要天下无敌解开十灾之谜。 聂歌:嘿,我就想安静种地,躺平当咸鱼。 …… 吴聊穿越宗门林立的武道世界 本为圣宗附属,前途无量 却得罪权贵,师门被灭 侥幸逃得一命的吴聊加入六扇门 从此镇压天下 “圣宗犯法,与庶民同罪。” “凡违背人道,犯我大乾律法者,虽远必诛!”当代毕业大学生在床上睡觉,窗外天雷滚滚,魂穿到一个充满元素的修真世界,修雷法,对强敌,结好友,泡妹子,揭开一个世界的隐秘,究竟是大梦一场,还是真实存在。   全球人类降临异域。   每人皆会继承一座宗门。   发展宗门,培养弟子,顺便斩妖除魔,还此方世界一片人道乐土。   此方世界,资源并不丰裕,再加之宗门如星辰般密集,所以各宗门宗主获取修炼资源的难度极大。   但李纯在降临异域的同时获得了授予弟子万倍返还系统。   授予弟子什么,系统皆会以一定倍率返还。   【叮,您授予弟子一枚筑基丹,万倍返还您一万枚筑基丹!】   【叮,您授予弟子一柄黄品上阶斩灵剑,万倍返还您一柄天品武器大道升龙剑!】   凭着万倍返还系统,李纯将其创立的人教推至了万界巅峰。    羽化飞升的周蒙没有成仙,却穿越来到了灵川大陆,灵魂附身在一个孱弱的少年身上。   人类是灵川大陆唯一无法炼气的生物,也是灵川大陆食物链的最低端的存在,还是众多兽族的口粮。   周蒙带着一身蓝星道法穿越,意外找到了人类修炼的法门。自身强化的同时还利用蓝星道法增强人类,居然能够使人族拥有无上实力。   周蒙以凡人之躯加冕人皇,带领人族崛起。   狼族:“区区人族而已,犹如蝼蚁,小指头足以捏死!”   狐族:“什么时候人类也能称之为威胁了?”   树族:“狗屁人类,我一巴掌一个好吧!”   人族开启修炼之旅,全员恶人之后。   狼族:“人族大佬们饶命,我愿意终生为人族当狗!”   狐族:“人类决不能留!”   蜥族:“啊?我蜥族被人族一巴掌一个了?”   扫清一干种族,成就万古人皇!!许家废少竟是万年难遇火神体?!且看废少逆袭之路!“那些瞧不起我的,嘲笑过我的,骂过我的,今天,我许言就在这玄武擂台上挑战所有人,谁敢与我一战!”穿越到玄幻世界,好不容易加入了圣地宗门觉醒了御灵系统 谁想到攒了几个月家底贷款炼制出来的御灵丹就被圣地的圣女师姐误食了 结果因祸得福,获得隐藏奖励 但是接下来的和灵宠服从性测试任务让白云琦傻眼了 “首先是原地转圈!” “然后是摸头舔手!” “最后是以坐骑形态出击!” ....... “师姐,你也不想你在大庭广众之下做服从性测试吧?” 本以为一次是意外,但一次接一次的被其他美少女吃下御灵丹,白云琦的心态发生了微妙的变化:这是御灵还是御人啊......穿越到古代,家中一穷二白! 不怕,运用21世纪的知识,随便搞点发明创造,改善家中生活! 一不留神富甲一方,漂亮老婆天天催着纳妾,小日子不要太幸福! 蛮族入侵,那就组建骑兵,制造火炮,打他丫的! 影响我平静的生活,敌寇虽远必诛!
踩马童的二三事连载 陈氏专政下的宇宙 武道人王 全民领主:我的运气无敌了! 与神王负明 风水易博术 人生模拟:开局被邪教绑架 振国神将 我的法官老爹 带猫穿越 雪落金陵 黟山传 从海贼开始诸天签到 镇诡司 最强武神路 玉星传说 致命舞蹈 原始狂想曲 大梦道术 最强杂役 男生盖纹身图片大全 男孩读书漫画图片大全图片 男人说说图片带字图片大全唯美伤感图片 动漫爱情的头像图片大全唯美图片大全图片大全集 男生盖纹身图片大全 男生头像唯美高清头像图片大全 男人想的和说的图片大全 qq头像皮卡丘带字图片大全可爱头像大全集 男生狐狸头像图片大全大图 男男爱欧美动态图片大全图片欣赏 男神图片霸气高清图片大全 男神图片霸气高清图片大全 男士的下体图片大全图片大全图片大全图片大全 男韩国头像图片大全2015款图片大全图片 男性全身漫画人物图片大全 qq头像男情侣动漫头像图片大全可爱头像 男人想的和说的图片大全 男生狐狸头像图片大全大图 男生侧面头发漫画图片大全 女孩主题漫画图片大全下载地址 男孩读书漫画图片大全图片 陪我疯图片大全 男生动漫图片全身图片大全 动漫戴围巾的女生图片大全 qq头像皮卡丘带字图片大全可爱头像大全集 男士的下体图片大全图片大全图片大全图片大全 男生狐狸头像图片大全大图 男生动漫图片全身图片大全 男生侧面头发漫画图片大全 男生狐狸头像图片大全大图 动漫爱情的头像图片大全唯美图片大全图片大全集 男孩读书漫画图片大全图片 皮卡丘简单的q漫画图片大全 女孩主题漫画图片大全下载地址 男士的下体图片大全图片大全图片大全图片大全 qq头像男情侣动漫头像图片大全可爱头像 皮肤黑 女生 颜色好看图片大全图片 男人想的和说的图片大全 男士的下体图片大全图片大全图片大全图片大全 皮肤黑 女生 颜色好看图片大全图片 qq头像男情侣动漫头像图片大全可爱头像 qq头像皮卡丘素描图片大全 女孩头像小清新图片大全2015款 男神背影高清图片大全 动漫戴围巾的女生图片大全 男孩读书漫画图片大全图片 男神图片霸气高清图片大全 皮卡丘简单的q漫画图片大全 男士香烟图片大全图片大全图片 男人和女漫画图片大全图片大全图片大全 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 黎命 网大公开课进群 震惊!我和网红周姐隐婚被曝光了 明日方舟之穿越 川枭 澳门葡京官网 AG真人 欧博官网 澳门葡京官网 欧博官网 男高清图全身图片大全图片 动漫爱情的头像图片大全唯美图片大全图片大全集 男韩国头像图片大全2015款图片大全图片 男士的下体图片大全图片大全图片大全图片大全 男性全身漫画人物图片大全 女孩头像小清新图片大全2015款 男男爱欧美动态图片大全图片欣赏 男孩读书漫画图片大全图片 男男爱欧美动态图片大全图片欣赏 男生动漫图片全身图片大全 qq头像皮卡丘带字图片大全可爱头像大全集 女孩主题漫画图片大全下载地址 男生盖纹身图片大全 qq头像皮卡丘带字图片大全可爱头像大全集 男女孩接吻的头像唯美图片大全 男男爱欧美动态图片大全图片欣赏 动漫爱情的头像图片大全唯美图片大全图片大全集 皮卡丘简单的q漫画图片大全 男人说说图片带字图片大全唯美伤感图片 男生头像唯美高清头像图片大全 男士香烟图片大全图片大全图片 男士的下体图片大全图片大全图片大全图片大全 男神图片霸气高清图片大全 动漫戴围巾的女生图片大全 qq头像皮卡丘带字图片大全可爱头像大全集 男生qq背影图片大全唯美 男生侧面头发漫画图片大全 男神图片霸气高清图片大全 皮肤黑 女生 颜色好看图片大全图片 男生侧面头发漫画图片大全