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
美男命劫 peapea 小说异界我来自地球 不叫扯淡 小说穿越成最小的女儿很受宠被指婚给一个家庭复杂的世子的小说有声小说 诱惑达芬奇密码 艾宝良 小说美男命劫 peapea 小说穿越西幻大陆之随身系统 纳兰十七 小说穿越成最小的女儿很受宠被指婚给一个家庭复杂的世子的小说宇宙传说 逍遥君子赵雨生 小说悠然末世 老贝 小说星新一小说美男命劫 peapea 小说女主倾国倾城 虐的小说金玉良言 小说穿越成最小的女儿很受宠被指婚给一个家庭复杂的世子的小说悠然末世 老贝 小说魔王的妖妃 黛若无扉 小说女主穿越到沙漠异族男主是个很残暴的君主的小说女主穿越到沙漠异族男主是个很残暴的君主的小说皇后求生记 弱水替沧海 小说小说 村长 野蛮女主穿越到沙漠异族男主是个很残暴的君主的小说宇宙传说 逍遥君子赵雨生 小说女主角失忆的小说 短篇达芬奇密码 艾宝良 小说小说 地底人有声小说 诱惑通灵鬼泣 灵魂颤栗 小说英雄联盟之终极进化 花月春风 小说女主倾国倾城 虐的小说朝为田舍郎,暮登天子堂。 崔峪穿越古代,本无心仕途,只想在这盛世年华平安喜乐,但时代洪流岂容你独善其身。 他从纨绔败家子到朱紫重臣,体会着王朝日隆、晃晃盛世,也感受着繁华之下的暗潮汹涌。 这是最好的时代,也是最坏的时代,更是崔峪的时代。 要风流,更要天下太平,要步步生莲,更要乾坤涤荡。 崔峪发出怒吼:“我的时代我做主!”2260年人类过度开采地球,生态环境严重破坏,不适宜人类生存 地球权贵移民火星 平民留在地球 创世神埔思在地球放下星际的产物——星穹之子 以拯救百姓于水火天赋异禀的李正在梦里重获天眼技能,开启了人生的新篇章。在协助林娇娇解开她扑朔迷离的身世之谜过程中,李正历经了波谲云诡的奇遇,遭遇了不明来历者的重重绞杀。最终打开了连通意识和现实的通道大门。虽解开了林娇娇的身世之谜,却触发了历史倒转的开关。 为了维护现实世界的安全,李正在意识世界里的众位隐士高人帮助下,终于淬炼出了真身。只是这位天之骄子要如何从千军万马中杀出重围,阻止历史篡改者试图从意识通道重回现实世界独霸天下的野心呢……张天峰重回1993年,以90元豪博100万。 从实业入手,一招盲盒经济享誉全球。 入股双马公司,教两人玩转用户流量经济。 控股苹果集团,教乔布斯设计一款完美手机。 ...... 拥有前世记忆,赚钱非常简单。 这一世,张天峰要教未来富豪赚钱,让他们把自己送上首富的宝座!长安巷一夜灭门,看主角如何江湖逃亡,如何历经劫难,如何练成绝学,如何快意恩仇。本书有英雄喋血,有儿女柔情,有宫廷之变,有正邪之争,故事曲折,笔法取自金、梁、古三家,结合现代散文写法,是典型的新派传统武侠风格。 深渊之中机遇与危机并存,生死与命运相连,于这神秘中,在这深渊中,何者生存 【本书纯属虚构,不要较真,看着开心就好,最好不带脑子(狗头)】 【穿越+系统+爽文+无女主】 礼鹤因为车祸去世了,成了反派,还绑定了“反派系统”。 又从系统那得知要集齐1亿积分才能回到他原来的世界。 不过他能够一直穿越,直到集齐1亿积分,回到他原来的世界。 “叮,恭喜宿主完成任务,奖励10000免死金牌。” “叮,恭喜宿主完成任务,奖励10000黄金。” “叮,恭喜宿主完成任务,奖励10w积分。” “叮,恭喜宿主完成任务,奖励……” 叶涯穿越到平行世界,开局参加梦想挑战者,没想到凭借一首歌直接爆火全网! 紧接着每一首歌都火爆全网,成为乐坛的宠儿,不仅如此,他还是公认的诗仙,钢琴大师! “叶涯,是我见过的最好的音乐人,没有之一!”世界级天王说道! “叶涯先生,绝对是当代诗仙!”国内文坛大佬说道。 “叶涯先生的钢琴比我优秀太多了”世界级钢琴大师说道。 就这样叶涯一路成为世界上最出名的人!《神秘的小葫芦》一书,着重介绍的是明朝嘉靖年间,在还乡河畔的阮家庄曾经发生过一件稀奇古怪之事。 而此事就发生在阮家庄阮鹏翔的家里。阮鹏翔早年丧妻,自己辛辛苦苦的把三个儿子拉扯大了。 老大读书最多,但他耍钱闹鬼儿不务正业。几乎输掉了家里所有的钱,弄的弟弟小三儿上学连书本儿都买不起。街坊邻居说七道八,阮鹏翔左右为难之时,遇相面先生指点迷津。 之后,阮鹏翔让三个儿子各奔东西,自谋生路,从此父子们不在一起守着一亩地过日子。 经过一段时间的打拼,老大、老二都挣到了钱,盖上了瓦房,娶上了媳妇儿。而小三儿却只是抱着一个小葫芦狼藉而归。谁也没有想到,小三儿那小葫芦竟是个宝物。 老大媳妇儿知道后,立刻起了贪心,连哄带骗,威胁恐吓,最终把小三儿的小葫芦弄到了手。但事与愿违,让老大媳妇儿没有想到的是,那宝物到了她的手里,千呼万唤不好使,竹篮打水一场空。苏州飞马堡无故被神秘组织所灭,马行空家破人亡,暗中调查找到幕后黑手青风堂,但却意外牵扯出三十年前武林一段风波,孰是孰非,如何决断?
万族末日:我和阎王有交易 魔证三千道 拂水龙吟凤梧扬 万道仙虚 消失的罪人 远离帝宙 乱灵纪 全球映射:开局斩杀地狱战神 大汉牧马人 黑夜谎言之月咒 魔界:魔刀决 西游之开局拒绝大闹天宫 星月沉 网游三国:开局获得神级建村令 洪荒:这个通天苟出天际 神秘维度 五行云霄 是猎人也是老师 十剑斩轮回 断剑成仙 女主 被前任老公灭门 古言小说 知名网络小说 唐时明月 架空历史 魔王的妖妃 黛若无扉 小说 女主穿越到沙漠异族男主是个很残暴的君主的小说 女主 被前任老公灭门 古言小说 小说 白虎逃 什么看书软件可以直接下载txt书的 而且是要什么小说都可以的 小说 民国武神 小说 地底人 女主倾国倾城 虐的小说 宇宙传说 逍遥君子赵雨生 小说 豪门少爷恋上女仆 欣丶儿 小说 女主角失忆的小说 短篇 悠然末世 老贝 小说 的男主角有一块叫什么龙的玉佩的.然后也是属于扮猪吃老虎的小说来的 达芬奇密码 艾宝良 小说 什么看书软件可以直接下载txt书的 而且是要什么小说都可以的 小说 地底人 小说 村长 野蛮 美男命劫 peapea 小说 知名网络小说 唐时明月 架空历史 穿越成最小的女儿很受宠被指婚给一个家庭复杂的世子的小说 异界我来自地球 不叫扯淡 小说 金玉良言 小说 悠然末世 老贝 小说 女主角失忆的小说 短篇 小说 地底人 异界我来自地球 不叫扯淡 小说 小说 村长 野蛮 小说 地底人 达芬奇密码 艾宝良 小说 知名网络小说 唐时明月 架空历史 有声小说 诱惑 美男命劫 peapea 小说 通灵鬼泣 灵魂颤栗 小说 达芬奇密码 艾宝良 小说 橹一橹小说 什么看书软件可以直接下载txt书的 而且是要什么小说都可以的 女主角失忆的小说 短篇 橹一橹小说 达芬奇密码 艾宝良 小说 赌你爱我 红枣 小说 皇后求生记 弱水替沧海 小说 豪门少爷恋上女仆 欣丶儿 小说 金玉良言 小说 知名网络小说 唐时明月 架空历史 宇宙传说 逍遥君子赵雨生 小说 有声小说 诱惑 英雄联盟之终极进化 花月春风 小说 穿越西幻大陆之随身系统 纳兰十七 小说 亚星官网 亚星官网 亚星游戏官网 亚星官网 亚星官网 魔法世界的修仙者 修仙致富系统 末世之黑门降临 守护者与猫头鹰 轮回系统之异界战神 亚星游戏官网 万利游戏官网 欧博游戏官网 亚星游戏官网 葡京官网 宇宙传说 逍遥君子赵雨生 小说 小说 地底人 达芬奇密码 艾宝良 小说 小说 民国武神 异界我来自地球 不叫扯淡 小说 金玉良言 小说 女主角失忆的小说 短篇 赌你爱我 红枣 小说 橹一橹小说 宇宙传说 逍遥君子赵雨生 小说 宇宙传说 逍遥君子赵雨生 小说 女主穿越到沙漠异族男主是个很残暴的君主的小说 金玉良言 小说 穿越成最小的女儿很受宠被指婚给一个家庭复杂的世子的小说 赌你爱我 红枣 小说 星新一小说 豪门少爷恋上女仆 欣丶儿 小说 穿越西幻大陆之随身系统 纳兰十七 小说 通灵鬼泣 灵魂颤栗 小说 悠然末世 老贝 小说 小说 村长 野蛮 英雄联盟之终极进化 花月春风 小说 豪门少爷恋上女仆 欣丶儿 小说 有声小说 诱惑 小说 白虎逃 宇宙传说 逍遥君子赵雨生 小说 小说 民国武神 达芬奇密码 艾宝良 小说 女主穿越到沙漠异族男主是个很残暴的君主的小说 穿越成最小的女儿很受宠被指婚给一个家庭复杂的世子的小说