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
邮政快递单号怎么查询电话号码是多少邮政快递即墨电话邮政快递单号怎么查询电话号码是多少钱邮政快递郑州网点电话查询邮政平托运电话是多少邮政快递单号怎么查询电话号码邮政包裹号查询电话号码邮政快递单号怎么查询电话号码是多少钱邮政后湖投递网点电话号码圆通查询单号查询快递查询电话邮政石家庄客服电话是多少邮政快递单号怎么查询电话号码是多少圆通查询快递电话查询邮政石家庄客服电话邮政快递单号怎么查询电话号码是多少钱圆通查询单号查询快递查询电话邮政哈尔滨电话是多少钱一个月邮政平托运电话是多少钱邮政平托运电话是多少钱邮政快递包裹单号查询客服电话邮政快递电话湖里区sm邮政平托运电话是多少钱邮政后湖投递网点电话号码邮政快递南京中心电话号码邮政平托运电话是多少邮政快递快递员投诉怎么投诉电话邮政快递郑州网点电话查询邮政快递南京中心电话号码邮政旧投递部电话号码圆通查询快递电话查询第一年 “师父我想下山,这里好无聊哇!”小男孩昂着稚嫩的小脸看着面前的白胡子老人说道 “哎呦,可不能啊小犊子,那山下啊全是蛇虎豺狼,吃人啊!”白胡子老头一脸惊恐回答道 第n年 “师父你看,这蛇虎豺狼那个都不是我的对手”青年得意的摆了摆手里的虎皮“刚抓的一会做身衣服……”青年嘴里还在嘟囔着 “我都跟你说几遍了山下什么都没有,你就是不信!咋滴非要把我这老头一个人扔在这你自己下山!小犊子我看你是欠打!”白胡子老头听到青年的话猛的从摇椅上坐起,举起手中摇扇作势要打 “师父我不下山了还不行吗,我伺候您老人家。”青年悻悻的跑出屋子自己做衣服去了……穿越大唐,意外成为李靖的第三个儿子。 因刚穿越的他按照系统指示逃婚,两年后,对突厥用兵的李靖与李世民发现了他的踪迹......然后他们就懵了,这是什么?没见过吧土鳖,这叫华子,可好抽了,老李,你今有口福了,来吹瓶啤酒。命运多舛的少年,不谙世事的灵智,两者的结合在九州大陆掀起了阵阵腥风血雨。 在这里也许会看到华夏神话的延续,也许会看到超强的灵宝,也许会看到上古遗迹,也许会看到各种稀奇古怪的异兽,也许会看到魔之本相……以书养气,以笔御剑,笔走龙蛇,剑舞八方,斩尽天下不平事,刺破万古长夜天。[纷扰如迷雾,逍遥且徐行] 入梦方醒,方觉大道维艰。从小世界意识回归醒来的大光头,抬手摸着自己脑瓜低吟着“无量天尊。” 看着身边传讯符,回忆着这次化身从婴儿到意气少年,又度过颠簸抗争的青年路程,往后便好似不记得自己有过壮年中年似的,回首时已在疑惑困顿中到了老年。 化身一生寂寥糊涂过,只留下一首连通顺都算不得的唯有悔恨的“一年一岁婴至此,一时一秒得与失。稻草压身抵千斤,默然回首如何持。神杂性善恶七情己,人和人白白入灰多。己识多实错分年,霎那蹉跎七十婴。” 又有那好似从老年到青年活着的感慨:“何所思何所愚何所怠,七十婴五十少三十明。天色长空人自老,道存事存时不存,上下空有物竞乾坤灭,事合人思万中无一寻。谁家孩儿拿那炮竹当烟花鸣一曲,潜游无欲无求后同求不在求呢。苦无一用怎是迷生。” 十三年前余浩全家被神秘男子杀害,将妹妹转化为尸鬼。 十三年后余浩成为一名天命师,开始踏上复仇之路,揭开一场天命师与尸鬼之间长达几千年的恩怨。仪容清俊貌堂堂, 双耳微张目有光。 头戴鸿蒙蚀月帽, 身批混元云影裳。 九龙靴衬盘龙袜, 玉带团花八宝妆。 手持独龙骨做枪。 背负阴阳双鱼转, 众生信仰归一方。 力朱异灵守净土, 证道成神见沧桑。 还命众生归桃源, 笑看后人谈阴阳。仙灵降世,灵气复苏。 妖尊悟空惨被菩提老祖疯狂追杀,重创之际,利用仅剩神力,封锁火星之石隧道,化作一粒记忆碎片陨落…… 百年之后,飞落水球,成为了水球人类的大脑思维结晶,之前历史记录,书籍神话人物,都是该神的记忆,最后徒弟秦记展开了亿年的复仇计划……文青版:孤侠隐市井,愿为府中吏;朴剑表无华,寒光映残血;北国千里客,庆南有佳人;白衣映红雪,青丝落云肩;宁断侠剑意,今世不再离……剑兮侠兮,玉京三千客;情兮梦兮,伊在阑珊处! 直接版:我一个剑客,现在在庆南府做公务员,每天就是巡巡街,审审犯人。元宇宙经典游戏出马传奇,沈庸一人独开四号,各有所长 另有三位妹妹辅助,四人共同纵横驰骋,称霸游戏!
苍天有眼,命数天定 地球的第六次重启 旧档案 都市绝品医神 从继承悟空绝学开启无敌 元宇宙二号 恶魔之主的复苏 柴周 熊的孩子 人化灵传 最强的我只想过平凡人生 山水游 万武记 星岸之下 不以玄界 乱世争雄之荆楚 废体乱仙途 萌娘神话世界 我的修仙模拟器 独狼道 邮政快递即墨电话客服电话 邮政石家庄客服电话是多少啊 邮政哈尔滨电话是多少钱一个月 邮政平托运电话是多少钱 邮政快递即墨电话客服电话 邮政快递南京中心电话 邮政快递单号怎么查询电话 圆通查询单号查询快递查询快递查询电话 邮政快递快递员投诉怎么投诉电话 圆通查询快递电话查询 邮政后湖投递网点电话号码 邮政后湖投递网点电话 邮政快递南京中心电话号码查询 圆通查询单号查询快递查询电话 邮政快递单号怎么查询电话号码 邮政平托运电话是多少 邮政快递单号怎么查询电话 邮政快递快递员投诉怎么投诉电话 邮政快递电话湖里区sm 邮政快递单号怎么查询电话号码是多少 邮政石家庄客服电话是多少啊 邮政快递单号怎么查询电话号码是多少钱 邮政快递即墨电话 邮政石家庄客服电话 圆通查询单号查询快递查询电话 邮政快递南京中心电话号码查询 邮政快递快递员投诉怎么投诉电话 邮政快递即墨电话 邮政快递电话湖里区sm 邮政快递快递员投诉怎么投诉电话 邮政平托运电话是多少 邮政石家庄客服电话是多少啊 邮政快递郑州网点查询电话 邮政快递单号怎么查询电话号码是多少 邮政快递南京中心电话号码 邮政平托运电话是多少 邮政快递郑州网点查询电话 邮政哈尔滨电话是多少钱一个月 邮政快递南京中心电话号码查询 邮政快递单号怎么查询电话号码是多少钱 邮政快递郑州网点电话查询 圆通查询单号查询顺丰快递查询电话 邮政快递包裹单号查询客服电话 邮政后湖投递网点电话 邮政石家庄客服电话 邮政石家庄客服电话是多少啊 邮政后湖投递网点电话 邮政快递郑州网点电话查询 邮政旧投递部电话号码 邮政包裹号查询电话号码 亚星官网 亚星游戏官网 亚星游戏官网 亚星官网 亚星官网 霸血龙神 大明武林那些事 投胎至三百年前 诡道天师 修仙归来混红尘 快连下载 亚星管理平台 亚星游戏官网 快连下载 亚星管理平台 邮政快递南京中心电话号码查询 邮政平托运电话是多少 邮政快递包裹单号查询客服电话 邮政快递南京中心电话号码查询 圆通查询单号查询快递查询电话 邮政旧投递部电话号码 邮政快递单号怎么查询电话号码是多少 邮政石家庄客服电话是多少啊 邮政快递单号怎么查询电话号码是多少钱 邮政快递电话湖里区sm 邮政快递郑州网点电话查询 邮政快递南京中心电话号码 邮政快递电话湖里区sm 邮政旧投递部电话号码 圆通查询单号查询顺丰快递查询电话 邮政快递单号怎么查询电话号码 圆通查询单号查询顺丰快递查询电话 邮政快递电话湖里区sm 邮政包裹号查询电话 圆通查询快递电话查询 邮政快递南京中心电话号码 邮政包裹号查询电话 邮政快递单号怎么查询电话 邮政快递南京中心电话 邮政后湖投递网点电话 邮政石家庄客服电话 邮政快递电话潮州 邮政石家庄客服电话 邮政快递单号怎么查询电话号码是多少 邮政石家庄客服电话是多少