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
什么的隔壁漫画入受三分漫画1第四世界上最漂亮的动漫画渣和无用改革漫画中国密会情人2漫画全集免费什么的隔壁漫画珍珠美人鱼漫画图片大全图片大全世界上最漂亮的动漫画库洛卡斯出现的漫画恐怖宠物店漫画在线恐怖漫画水龙头后续世界上最漂亮的动漫画肉体派男子漫画恐怖漫画水龙头后续色系漫画之拉拉队女孩恐怖宠物店漫画在线手表的漫画附身仙女漫画附身仙女漫画机器人漫画书蜡笔小新漫画书 在线附身仙女漫画库洛卡斯出现的漫画执法不公平漫画图片色情漫画夜店豪老公太狂热漫画色情漫画夜店执法不公平漫画图片机器人漫画书肉体派男子漫画林叶,一个大专辍学肄业生,靠着父母留下的小卖部浑浑噩噩的过着日子,突然的英雄救美让他变成了活死人,谁知还激活了阴德系统! 姐,淹死的?我这差两点升级,让我给你一拳吧? 哥,你跳楼没的?没出息,让我踹一脚,加点阴德值! 我是金牌打鬼人,男人钱财,替人消灾,金字招牌! 我是真的打鬼人,真的打哦!人生一世,俯仰之间,若草木一秋,忽然而已。红月当空,全球骤变。拥有力量,你就高高在上,应有尽有,没有力量,你就只能任人宰割。危机爆发,众种族林立,丧尸,异兽,鬼种,人类。九转山河,浩瀚天下,试问天下,谁与争锋!起步比别人晚的颜逸能否追赶众人的脚步,在末日之中杀出一条属于自己的路。亲亲苦苦熬到大学毕业,李风一夜猝死,到了三万大千世界当起了编程员。 出身宗门世家,他小手轻轻一敲,世家子弟直接名望千里之外。 出身九阴之体,他小手一改,顺便捡到了包罗之象。 出生有黑鸦陪同,他手一挥,三千万凤凰卧地朝拜。 一日,李风发现,他可以直接编写自己的修为,无限制。 一日,李风发现,他还可以直接编写别人的修为,无限制。 又一日,李风发现,这个后台竟有一个更大的秘密。比如:编写一切圣灵,更改一切数据! 三个月后,李风成为天道正式编程员。 在强兵压城的某个夜晚,李风一个“手滑”,直接将敌方五百万大军修为下降两阶! 不够?那就给我再降! 自大爆炸发生那天起人类的文明遭到了毁灭性的打击,突然出现的一种叫噬的液体生物,无声侵入人体,操控他们的行动和思维,仅仅是几个月的时间人类众多的城市都成为噬的巢穴。生来记忆被封印,随着修为增加,记忆不断恢复,被封印的记忆即将打开,轮回一世是否战胜自己的哥哥这是一个讲述主角与各种存在于神话传说之中的鬼怪厮杀的故事。 这个世界存在着许多常人无法认知的禁忌,而禁忌其本身的存在便不允许他人接触,否则这些禁忌也终将撕开现世的帘幕,为世界带来灾难与痛苦,而除灵部队,是这样一支专门用于对抗禁忌的武装部队,他们会用尽一切办法,阻止这些禁忌染指这个世界。 而徐凌云便是被这份禁忌所波及的普通人之一,五年前,徐凌云最重要的青梅竹马因为卷入了一起没有记录的事件中而彻底变得杳无音讯。 而现在,五年之后,自己也被卷入了一次相似的事件之中,从此徐凌云便被迫进入了这个本不应踏足的领域之中。 “在得知真相之前,我会用尽一切办法在这个恐怖的世界里活下去!”叶诚,华夏大学医学院学生,2010年某天,他和同学们一起到‘天涯海角’风景区游玩,在一个山洞之中,叶诚捡到一块玉佩。   没想到这块古玉是沈万三的,由于这块古玉的吞噬性很强,叶诚和李小娜被一道闪电击中,带到明朝。   …………   “啊……救命!”   “有谁能救我啊!”   “哪个SB啊,大早上谁打来的电话?吵死了!”   “肯定是叶诚这家伙!”   “行了,都别说了,班长下指示了!”   史海涛喊道:“孙平,你的女人缘最好,由你通知女生宿舍!吕帅帅通知501、502、503宿舍,龙欢负责通知601、602及校外的同学。”   孙平连忙穿好上衣坐起来,笑道:“没问题啊!正好我每天早上跟女朋友有接吻的习惯!”一本回忆录而已,看看有没有你的影子一个未来的地球华夏人,无缘无故穿越到异世大陆,面对着妖、魔、鬼、怪横行的灵界,人族界王的无故消失,各个组织与势力的不怀好意,他又该何去何从。
九则人世间 诸界仓皇 相亲修炼手册 年少时的我们 沈江 画缘续情 这个召唤师不太正经 人间觉醒 浩辰仙缘 元宇宙:权力之眼 侠骨天娇 都市至尊之修罗 白云历险记 浪荡人生 凌枫传 逍遥小家丁 闻墓录 我是天道编程员 不杀之剑 英雄王者联盟 远古尸毒 我的灵宠怎么都是美少女 好有色漫画大全 美人鱼人皮漫画 手表的漫画 密会情人2漫画全集免费 好有色漫画大全 韩国 漫画 痔疮 手表的漫画 恐怖漫画黑鸡汤全集 豪老公太狂热漫画 蝙蝠侠猫女良漫画图片 口工漫画全彩可奈子 口工漫画全彩可奈子 朝5晚9漫画啪啪啪 美人鱼人皮漫画 什么的隔壁漫画 密会情人2漫画全集免费 恐怖漫画犬吠 豪老公太狂热漫画 辱肉漫画图片搜索 世界上最漂亮的动漫画 美人鱼人皮漫画 世界上最漂亮的动漫画 辱肉漫画图片搜索 附身仙女漫画 恐怖宠物店漫画在线 朝5晚9漫画啪啪啪 好有色漫画大全 入受三分漫画1第四 辱肉漫画图片搜索 豪老公太狂热漫画 密会情人2漫画全集免费 空姐的特殊性服务漫画 渣和无用改革漫画中国 什么的隔壁漫画 执法不公平漫画图片 色情漫画夜店 渣和无用改革漫画中国 手表的漫画 朝5晚9漫画啪啪啪 色系漫画之拉拉队女孩 色情漫画夜店 恐怖漫画黑鸡汤全集 女孩儿被卖的漫画 恐怖漫画犬吠 恐怖漫画水龙头后续 空姐的特殊性服务漫画 口工漫画全彩可奈子 色情漫画夜店 朝5晚9漫画啪啪啪 真人版av漫画 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 枫林志 滇楚黔秦 桃源小天师 百鬼图腾 苟成天仙 快连下载 亚星管理平台 亚星官网 快连下载 亚星管理平台 色情漫画夜店 色系漫画之拉拉队女孩 真人版av漫画 渣和无用改革漫画中国 附身仙女漫画 珍珠美人鱼漫画图片大全图片大全 恐怖漫画水龙头后续 执法不公平漫画图片 美人鱼人皮漫画 执法不公平漫画图片 蜡笔小新漫画书 在线 朝5晚9漫画啪啪啪 恐怖漫画黑鸡汤全集 什么的隔壁漫画 蝙蝠侠猫女良漫画图片 蜡笔小新漫画书 在线 珍珠美人鱼漫画图片大全图片大全 蝙蝠侠猫女良漫画图片 韩国 漫画 痔疮 肉体派男子漫画 手表的漫画 豪老公太狂热漫画 恐怖漫画犬吠 珍珠美人鱼漫画图片大全图片大全 库洛卡斯出现的漫画 附身仙女漫画 什么的隔壁漫画 恐怖漫画水龙头后续 辱肉漫画图片搜索 口工漫画全彩可奈子