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
英雄连电视剧下载在悉尼拍的电视剧中国电视剧嘿孩子迅雷下载邮差电视剧迅雷下载电视剧守卫者分集剧情介绍英雄连电视剧下载一部关于和?|的电视剧电视剧嘿孩子迅雷下载国内最受人气的电视剧大商人电视剧男主角是总经理电视剧英雄连电视剧下载于成龙电视剧穿帮镜头狸猫换太子电视剧演员表电视剧嘿孩子迅雷下载大商人电视剧云巅之上像什么电视剧妓女和英雄电视剧妓女和英雄电视剧杨冰主演的电视剧霍建华和林心如演过电视剧吗妓女和英雄电视剧国内最受人气的电视剧2016 金庸电视剧排行榜电视剧守卫者分集剧情介绍赵丽颖的电视剧有哪些邮差电视剧迅雷下载刘华强电视剧全集第一演过农村电视剧女演员于成龙电视剧穿帮镜头“叮!菩提树下签到成功!主人悟性提升一千点!”   “叮!练功房签到成功!主人修为提升一万年!”     “叮!神兵房签到成功!奖励主人盘古开天斧一柄!”   宁浩远开局闭关签到一万年,狂刷奖励无数,在这一万年里,他随手调教的弟子,在外界掀起一阵又一阵狂澜。   他点化的一条鲤鱼,成了妖族龙祖。   他栽种的柳树,成了仙界最强祭灵。   他家菩提树枝头的荒雀,涅槃成了神凤。   他收留的神族少女,成为一代女帝。   他随手捡的弃婴,成了举世闻名的剑仙。   ……   他本以为可以一直签到下去,谁知有一天因他太强,系统居然吓崩了!   而这时后世美女徒孙磕头求见。   “老祖宗,快出山!”   “你的徒子徒孙都被人抓走了!”   “咱们玄剑圣地,要没了!”   于是,宁浩远出山。 万界战栗!郡主家里养赘婿,弹琴赋诗通文艺,家里男人样样好,就是没个男人样。懦弱、胆小、霸凌是我经常遇见的,为了改变我努力习武,日复一日年复一年,坚持与毅力共存知行合一。做一件事要认认真真的去完成,你要做到一往无前,不畏艰险打破一切困难! 且看怂包少年偶得系统开启武学之路拳震八方,成就无双威名! 匚系统提示,假如你有机会穿越到三国选义父,你会选择谁,是汉室宗亲刘备,还是汉贼曹操,或是江东孙权,你会选择谁呢?]屠婧婧:老娘把你当弟弟! 你竟然想让我给你生孩子。 陈然之:婧婧老婆想逃? 重生一次,老子会让你跑掉”。 屠婧婧:你叫我什么?找死是不是? 你这个混蛋,老娘把你养那么大,看拳” 陈然之:当场鼻血飙升, (甜宠、高糖、、日常文、姐弟恋1v1)一言定生死,一语变乾坤。人之上,有九天;东方苍天,南方炎天,西方浩天,北方玄天,东北旻天,西北幽天,西南朱天,东南阳天,中央钧天。我九天教奉天承运,替天行道。王明一个上进的少年,多件事情改变了这个少年。宿舍好友的诬陷、父母被债务所逼死、亲朋好友的远离。王明跪在父母墓碑旁大喊这里是…地狱啊!他彻底跪倒在雨水中回忆着种种回忆已经失去了一切的他决定拿着多年的积蓄去到一个名为月阳城的地方。简介: 天下九洲,证道无人。 从一个洞窟开始,莫闲靠改写命运线的能力迈向顶峰。 他看到修士屠城,妖兽作乱,穹顶之下民不聊生。 他看到秘境开启,阴谋四起,修炼之路上白骨皑皑。 他看到神器现世,九洲争夺,大道面前众生皆蝼蚁。 抬眼都是萧瑟,垂首尽显荒凉。莫闲手握众生命运之线,长啸一声:“九洲有我,大道不悲!”奉师命下山治病的叶秋,凭借亿点点高强医术,让各路美人闻鸡起舞,无法自拔。 “叶秋,你除了医术高强,精通道卦玄术,有一堆国色天香的女人拥戴以外,你还是个啥?” “抱歉,我还是个美男子!”
半吊子闯红尘 废材极品纨绔 携酒上吟亭 末世从人性荒岛开始 万年屠尸录 蜀山轶事 修炼王国2 双生之魂 腹黑领主的奋斗日记 血战匈奴 大话龙珠:重生大王弗利萨 神域战纪 蛮荒世界的记忆:万王之王 重返西游 魔法世界的修仙者 我真不想当大侠 万融通天 巅峰的惆怅 寻麦 齐天云帝 电视剧守卫者分集剧情介绍 在悉尼拍的电视剧中国 演过农村电视剧女演员 爱情秘诀电视剧全集 电视剧守卫者分集剧情介绍 狸猫换太子电视剧演员表 杨冰主演的电视剧 民国恩仇录 电视剧 狸猫换太子电视剧演员表 10月要上映的电视剧 英雄连电视剧下载 英雄连电视剧下载 演电视剧男明星大全。 在悉尼拍的电视剧中国 于成龙电视剧穿帮镜头 国语版泰国电视剧爱的味道 讲述历史电视剧有哪些 妓女和英雄电视剧 邮差电视剧迅雷下载 于成龙电视剧穿帮镜头 霍建华和林心如演过电视剧吗 养母爱情电视剧全集 邮差电视剧迅雷下载 国内最受人气的电视剧 民国恩仇录 电视剧 大商人电视剧 妓女和英雄电视剧 邮差电视剧迅雷下载 霍建华和林心如演过电视剧吗 赵丽颖的电视剧有哪些 电视剧守卫者分集剧情介绍 演电视剧男明星大全。 邮差电视剧迅雷下载 英雄连电视剧下载 刘华强电视剧全集第一 电视剧守卫者分集剧情介绍 电视剧任长霞全集在线播放第4集 国语版泰国电视剧爱的味道 2016 金庸电视剧排行榜 电视剧任长霞全集在线播放第4集 电视剧守卫者分集剧情介绍 江南第一家电视剧 杨冰主演的电视剧 爱情秘诀电视剧全集 狸猫换太子电视剧演员表 演电视剧男明星大全。 国内最受人气的电视剧 邮差电视剧迅雷下载 演过农村电视剧女演员 一部关于和?|的电视剧 亚星官网 亚星游戏官网 亚星游戏官网 亚星官网 亚星官网 耀世神辉 签到几亿年,他无敌啦! 我不想来大唐 英勇特战队 封神之我没想和女娲谈恋爱 亚星游戏官网 万利游戏官网 万利官网 亚星游戏官网 葡京官网 男主角是总经理电视剧 大商人电视剧 养母爱情电视剧全集 云巅之上像什么电视剧 霍建华和林心如演过电视剧吗 电视剧嘿孩子迅雷下载 男主角是总经理电视剧 演过农村电视剧女演员 邮差电视剧迅雷下载 赵丽颖的电视剧有哪些 大商人电视剧 英雄连电视剧下载 国语版泰国电视剧爱的味道 英雄连电视剧下载 刘华强电视剧全集第一 刘华强电视剧全集第一 在悉尼拍的电视剧中国 民国恩仇录 电视剧 国内最受人气的电视剧 讲述历史电视剧有哪些 电视剧守卫者分集剧情介绍 一部关于和?|的电视剧 霍建华和林心如演过电视剧吗 电视剧任长霞全集在线播放第4集 国语版泰国电视剧爱的味道 男主角是总经理电视剧 民国恩仇录 电视剧 养母爱情电视剧全集 讲述历史电视剧有哪些 讲述历史电视剧有哪些