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
日本的美女游戏手机游戏下载地址索菲做蛋糕小游戏人的游戏呀日本调教女佣小游戏搜索猫咪游戏日本的美女游戏手机游戏下载地址苏联开发的一次性游戏人的游戏呀所有关于皮卡丘的游戏大全搜索游戏汽车人塔坊小游戏人的游戏呀苏菲亚生玩什么游戏塔坊小游戏日本调教女佣类游戏搜索游戏汽车人所有的打屁股的游戏大全视频大全视频大全视频大全视频大全搜索魔法俏佳人游戏搜索魔法俏佳人游戏日本的美女游戏手机游戏所有关于皮卡丘的游戏大全集搜索魔法俏佳人游戏所有关于皮卡丘的游戏大全日本的美女游戏大全视频大全集日本调教女优小游戏热血物语类游戏日本调教女优小游戏日本的美女游戏大全视频大全集日本的美女游戏手机游戏苏菲亚生玩什么游戏 建文四年,朱棣拖家带口举兵造反,攻进应天府时,最疼爱的太孙朱瞻基却离奇失踪。 朱棣大怒,认为是建文乱臣所为,遂屠杀一万四千余建文乱臣及家眷,流放三万余靖难遗孤,以表对太孙疼惜之意。 …… 十一年后,一少年乱了朱棣心智,朱棣时常化作普通老头,与他一起打猎。 “老爷子,我真不是你孙子,我是从死人堆里爬出来的,没有亲人。” 朱棣听着朱辰的独白,禁不住就落泪了。 “谁说你没亲人,我现在告诉你,你爷爷是永乐大帝朱棣,你是大明皇嫡长孙。” 朱辰:“老爷子,您别骗我了。” 朱棣道:“不信也罢,我欠你一个盛大的复辟仪式。” 次日,应天府白日宵禁,万人空巷,十万大明铁骑进城,为首一人,正是那身穿铠甲,龙虎精神的老爷子! 爷孙俩隔空对望一眼,朱棣一笑。 十万大明铁骑下马,恭敬跪地大吼:“恭迎大明皇嫡长孙回朝!”这局讲述的是逐鹿之战之后,蚩尤再度复活想要再次统一全部族然后和一个拥有两个灵魂的青年“洺”相互争斗的是遭遇背叛能够保持心态,遭遇绝境奋力拨开迷雾,遭遇不公执着于平等,遭遇低谷从未放弃,只为坚守那一份心中的美好2100年一个武器库保管员,连同武器库一起穿越到了民国时期,从此走上军火大亨的路一名少年天赋异禀,因被手足残害险些命丧他手,不曾想因祸得福在机缘巧合之下寻得仙界神兵。当绝世神兵再现,引仙魔觊觎之时,他又将迎来一场怎样的命运呢?霍泽穿越陌生朝代顺带着绑定了“写书成神”系统。 做的文抄公,写的妙笔花。 修为蹭蹭涨,宝物各处来。 还意外捡到一个貌美如花的小娘子。 “相公,人家也想做诰命夫人嘛!” 娘子的撒娇这谁顶得住啊。 修仙不如做官! 没想到本以为充满阴谋诡计的仕途却意外的顺利。 某一日,女帝退位,皇太女登基。 位极人臣的霍泽看着盛装登基的皇太女目瞪口呆。 娘子,诰命夫人已经不能满足你了吗? 居然登基做女帝?这个世界,儒墨法道,百家争鸣 苏文以为来到以文乱法,以武犯禁快意恩仇的大争之世 没想到却被诡秘所支配…… 穿越成了朱元璋的孙子,朱允熥头大了。 他只想躺平,躲得远远的做个逍遥小地主,却没想所有人都以为他在演戏! 朱元璋:这孩子一无是处,可咱家怎么越看越喜欢? 朱允炆:我去!原来这小子一直在坑我! 朱棣:别装了,老子早就看穿你了! 朱允熥:??? 都特么有病吧? 爆笑大明,个个都是脑补高手,原来还可以这样当上皇帝! 虚镜、灵镜,主人公虚灵从太虚大陆开始生活、修练、强大,经历过欺骗、伤害,一切一切的过往、经历让主人公虚灵战胜一切、克服一切,直到战在虚镜、灵镜之巅,才发现原来的一切也只是一场梦。一代修者熊宇穿入木星大陆的崛起历程......
王二浪的幸福生活 携鬼修仙 无色神帝 恶灵游戏:诅咒的空间 明朝小书生 废土穿越商 废柴的科技飞升 重生之无敌盗墓 海贼之无敌后才开始签到 梵天君临 红哥的传奇人生 电影世界历险记之我的猫咪 萌战无双之火与剑 衣冢 秦明法神 暗羽下星之彼端 潇漓传 太史信列传 这个皇帝有点六 做一条清水的河 锁屏之后可以玩游戏 塔防国王的游戏叫什么名字 所有的打屁股的游戏大全视频大全视频大全视频大全视频大全 搜索猫咪游戏 锁屏之后可以玩游戏 人鱼公主芭比装扮游戏下载 所有的打屁股的游戏大全视频大全视频大全视频大全视频大全 宿舍四人对战手机游戏 热血物语类游戏 苏菲亚公主游戏片段 所有关于皮卡丘的游戏 所有关于皮卡丘的游戏 日本的美女游戏大全视频欣赏 塔防国王的游戏叫什么名字 日本的美女游戏手机游戏下载地址 搜索猫咪游戏 所有的免费鳄鱼游戏 热血物语类游戏 所有关于皮卡丘的游戏下载 人的游戏呀 塔防国王的游戏叫什么名字 日本调教女佣类游戏 所有关于皮卡丘的游戏下载 塔坊小游戏 搜索游戏汽车人 日本的美女游戏大全视频欣赏 热血物语类游戏 索菲做蛋糕小游戏 所有关于皮卡丘的游戏下载 热血物语类游戏 搜索猫咪游戏 塔防国王的游戏叫什么 日本调教女佣小游戏 日本的美女游戏手机游戏下载地址 日本的美女游戏大全视频大全集 搜索猫咪游戏 日本调教女佣小游戏 所有的打屁股的游戏大全视频大全视频大全视频大全视频大全 日本的美女游戏大全视频欣赏 日本调教女佣类游戏 日本调教女优小游戏 苏菲亚公主游戏片段 日本的美女游戏手机游戏下载 所有的免费鳄鱼游戏 塔坊小游戏 塔防国王的游戏叫什么 所有关于皮卡丘的游戏 日本调教女优小游戏 日本的美女游戏大全视频欣赏 苏联开发的一次性游戏 亚星官网 亚星官网 亚星游戏官网 亚星官网 亚星官网 鸿蒙至尊重生成系统 三界恩怨情仇 噬魔者:觉醒 大道界墟 末世:我有一对星辰眼 澳门葡京官网 快连下载 欧博官网 澳门葡京官网 欧博官网 所有关于皮卡丘的游戏 热血物语类游戏 苏联诡异游戏 日本的美女游戏手机游戏下载地址 所有关于皮卡丘的游戏下载 塔坊小游戏 塔坊小游戏 热血物语类游戏 热血物语类游戏 所有关于皮卡丘的游戏大全集 日本的美女游戏手机游戏下载 人鱼公主芭比装扮游戏下载 搜索猫咪游戏 搜索游戏汽车人 所有关于皮卡丘的游戏下载 日本的美女游戏大全视频欣赏 塔防国王的游戏叫什么名字 锁屏之后可以玩游戏 苏联诡异游戏 搜索猫咪游戏 日本调教女优小游戏 所有关于皮卡丘的游戏大全集 所有关于皮卡丘的游戏大全集 塔坊小游戏 塔坊小游戏 日本调教女佣小游戏 日本调教女优小游戏 塔防国王的游戏叫什么名字 宿舍四人对战手机游戏 所有的打屁股的游戏大全视频大全视频大全视频大全视频大全