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
仙桃火车西站在哪里汉中到广州的火车有没有停运南阳桐柏火车站附近上海至宿州普通火车南平一北京火车时刻表伊春大连火车票全价儿童全价火车票南阳桐柏火车站附近桂林到昆明火车卧铺票价泰山贵阳火车票查询介休到重庆北的火车仙桃火车西站在哪里广西南宁到三明北火车时刻表广西的火车站有几个南阳桐柏火车站附近泰山贵阳火车票查询凯里到醴陵火车时刻表查询南阳到郑州火车的火车南阳到郑州火车的火车遵义西到重庆北火车时刻表株洲到哈密火车站列车时刻表南阳到郑州火车的火车桂林到昆明火车卧铺票价甫田到锦州火车南平一北京火车时刻表滕州火车站上门服务上海至宿州普通火车甫田到锦州火车遵义西到重庆北火车时刻表广西南宁到三明北火车时刻表一座图书馆,一本普通的书,一个平凡的大学生,在那一天之后,命运产生了翻天覆地的变化主要是青天日月曜神为首的曜神与雷祖天尊普化大弟子张叔夜结下仇缘,后三十六天罡 七十二地煞帮助青天日月曜神一齐将雷祖与雷将一一打退,后齐天大圣大闹天宫,三十六天罡七十二地煞为报齐天大圣旧情,不发兵救援(玉皇大帝),被玉皇大帝关押在龙虎山,后洪太尉奉孙悟空之命放走三十六天罡 七十二地煞,雷部三十六将和雷部大弟子及其左右待者并约一十八散仙私自下凡除去三十六天罡 七十二地煞,后八位散仙一一阵亡,只剩那十名散仙,那八位散仙并告知青天日月曜神七十二地煞三十六天罡被斩,青天日月曜神等一齐大怒并上报玉皇大帝下凡除雷部三十六将,玉皇大帝也大怒道:请勿伤害雷祖三人,只拿回归案,朕自会解决。青天日月曜神等并道:好,遵陛下命令。青天日月曜神等转世为人,青天日月曜神只需了宣和十年将三十六雷将 八位散仙一一诛灭。本来以为只是一个非常简单的送信任务的秦朗,怎么也没想到师傅是让他和神武将军慕容博之女慕容婉儿完婚的,结果人家根本看不上他这乡巴佬的样子拒绝这门亲事,本来没这打算的秦朗也没纠缠,以进入大武帝学院和慕容婉儿达成交易,让秦朗没想到的是大武帝国第一美人,帝国最受宠的公主尽然要嫁给自己,而这也给秦朗带来了一系列的麻烦,看秦朗怎么在这个群英荟萃的大武帝学院搅动风云(轻松搞笑+海王+多女主+文抄公+迪化) 那一年……陈黎回到了17岁。 看着镜子中的自己,欲哭无泪。 生性散漫的他剪掉长发后,却像是变了一个人…… 他身披众多马甲,游离在万花之间。 众人对他的认知,始终停留在表象。 父母觉得他是软饭王! 美女觉得他是绝对的天才! 朋友觉得他是江湖大佬! …… 实际上,陈黎只想做一个真诚的人。 ps:本书又名《我的马甲有点多》、《我真的很专一》 十年前,杀星江峰横空出世,枪挑修道世家,剑夺美人娇妻,娶了13个老婆。 后来被雷劈死了。 子嗣江川,拥有超凡能力却无法修行,百年岁月就要沦为黄土… 仰天长啸,苍茫星海,如何走出长生路? 南京沦陷后,日寇对30万中国军民展开灭绝人寰的大屠杀。渔家子弟罗小虎临危受命,保护国民党高官的女儿林菲儿撤往后方。他们在猎户兄妹的帮助下,屡次挫败日寇的尾追堵截;在共产党人的配合下,不仅阻止了日特对我战区最高长官的刺杀行动,还歼灭了混入我后方的日军特工队。 这些英雄儿女面对强大的日军特工部队,毫不退缩,与之斗智斗勇,展开了惊心动魄的暗战……  常定宇穿越民国,成为当地乡绅子弟,激活《世界首富》系统,并青春永驻,容颜一直停留在了二十出头。 但他无心壮大个人财富,反而创办大学,抗击奴人,屡立奇功,身上伤疤无数。   最终因为系统原因,常定宇战争尚未结束就直接进入了活死人的状态,直到百岁生日这一天才苏醒过来。   一日,常定宇骑着电动车和大妈相撞,被大妈诬陷碰瓷。   围观的路人纷纷对他指指点点。   “年纪轻轻的干什么不好,竟然也学老人碰瓷,一个大小伙子,你害臊不害臊?”   常定宇非常气愤,他从来没被人这么冤枉过,想上前理论,结果被大妈扯坏了衣服。 一身伤疤触目惊人,众人都傻了……他本来是世界顶尖杀手组织的王牌,精通枪械,医术,格斗,杀人术,却在一次任务中惨遭暗害,死后重生到了民国时期,又能在民国之中摩擦出什么火花呢?这是发生在一个架空世界『塞图尔』的故事,在这个世界,所有的物种都有成为神的机会。当然是有条件的,拥有『武装』,这些拥有武装的人都被称为『武装者』。在这个世界,分为『兰科特』『明华』『空』三个国家,而联盟则是三个国家共同创办的独立机构,专门培养年轻的武装者,然而许多年过去,却谁也没有发现联盟的阴谋……这是一个内卷的修仙世界,龙太子螭吻却不能选择躺平。 他拥有天界最强的修炼天赋和最强的肉身躯体,却苦修十年,一直提升不了境界。 他修炼了十年,就被天界的正统修道士给耻笑了十年。 “天界修道吊底儿”的帽子,他整整戴了十年,他也足足隐忍了十年。 直到十八岁生日的那天,他终于等来了一次机会,一次下界封兽的任务。 天界赐给了他《封兽榜》,一个能吸取妖气的法宝。 但是,他好像是一个妖修... 于是,新一代妖族之主螭吻的都市修仙升级故事,就此开始。
梦卡兔波虫与梦 大唐:我在长安开酒楼 灵境圣者 渡死 大小姐的头号医仙 太空人冒险日记 昱皇大帝国 黑暗江湖的尽处 克苏鲁觉醒 都市皇途 灵气复苏:从吞噬灵剑开始 天翼的非正常日常 地府现代化,阎王找我烧电脑 我的系统不一般! 无敌届主 噩梦重启 云海沉浮 绑定系统,然后它溜了 和平小道士 夕阳下的疯狂 旬阳到赣州的火车票查询 蒙自到昆明火车票多少钱 泰山贵阳火车票查询 威海到临沂北火车时刻表 旬阳到赣州的火车票查询 桂林到昆明火车卧铺票价 武汉到利川火车卧铺 武汉到利川火车卧铺 滕州火车站上门服务 广西南宁到三明北火车时刻表 桂林到昆明火车卧铺票价 扬州火车站站图片 延安至宜昌火车时刻表 泰山贵阳火车票查询 伊春大连火车票 南平一北京火车时刻表 旬阳到赣州的火车票查询 滕州火车站上门服务 株洲到哈密火车站列车时刻表 仙桃火车西站在哪里 湛江到宁波怎么坐火车 南阳桐柏火车站附近 汉中到广州的火车有没有停运 广西的火车站有几个 泰山贵阳火车票查询 延安至宜昌火车时刻表 滕州火车站上门服务 汉中到广州的火车有没有停运 株洲到哈密火车站列车时刻表 滕州火车站上门服务 南平一北京火车时刻表 湛江到宁波怎么坐火车 蒙自到昆明火车票多少钱 仙桃火车西站在哪里 甫田到锦州火车 南平一北京火车时刻表 蒙自到昆明火车票多少钱 凯里到醴陵火车时刻表查询 延安至宜昌火车时刻表 南阳桐柏火车站附近 上海至宿州普通火车 太原到北京火车中转站 威海到临沂北火车时刻表 扬州火车站站图片 广西的火车站有几个 湛江到宁波怎么坐火车 扬州火车站站图片 上海至宿州普通火车 遵义西到重庆北火车时刻表 全价儿童全价火车票 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 如梦起源 天朝往事 末日降临:我带着全族去修仙 妻儿殒命:我意外重生赎罪 最后纯血统 百度 百度 百度 百度 百度 湛江到宁波怎么坐火车 甫田到锦州火车 延安至宜昌火车时刻表 汉中到广州的火车有没有停运 蛙埠到徐州火车时刻表 遵义西到重庆北火车时刻表 伊春大连火车票 南平一北京火车时刻表 凯里到醴陵火车时刻表查询 汉中到广州的火车有没有停运 武汉到利川火车卧铺 扬州火车站站图片 介休到重庆北的火车 蛙埠到徐州火车时刻表 广西至北京西站的火车 伊春大连火车票 伊春大连火车票 抚州站有去那里得火车票 甫田到锦州火车 株洲到哈密火车站列车时刻表 蛙埠到徐州火车时刻表 桂林到昆明火车卧铺票价 威海到临沂北火车时刻表 上海至宿州普通火车 全价儿童全价火车票 株洲到哈密火车站列车时刻表 泰山贵阳火车票查询 旬阳到赣州的火车票查询 广西的火车站有几个 蛙埠到徐州火车时刻表 亚星官网 亚星官网 万利官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网