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
莆田有到烟台的汽车濮阳汽车站时刻表济宁合肥汽车多长时间台儿庄到新沂的汽车承德到北京汽车在哪坐车莆田有到烟台的汽车汽车车票上有什么信息吗济宁合肥汽车多长时间茂名至平定汽车时刻表丽水到金华汽车票价嘉兴到太原的汽车票莆田有到烟台的汽车苏州53路汽车嘉兴到太原的汽车票济宁合肥汽车多长时间丽水到金华汽车票价枣庄到泰安的汽车票价承德到北京汽车在哪坐车承德到北京汽车在哪坐车襄阳到惠州汽车站时刻表城站汽车客运站在哪佛山至高要的汽车茂名至平定汽车时刻表扬州到合肥汽车时间长治到衡水的长途汽车多长时间合肥到周集的汽车台儿庄到新沂的汽车番禺汽车站到从化汽车站时刻表襄阳到惠州汽车站时刻表阜阳北到合肥汽车时刻表查询电话大家好我是世家独一,阴阳界这部作品是我写的一本小说,由于时间比较富裕,现在语音播讲也是我自己在播,阴阳卷一共十二卷,这部叫阴阳界之仇仙。 简介 阴阳界,一个存在即是合理的地方,因为城隍力量薄弱,强大的阴魂精怪建立的狂欢乐园,横死之人死后会不由自主的被阴阳界吸引,这里就是精怪阴魂的游乐场。风水法器世家岳家长孙岳清山,阴阳杂家吕齐官(地府五官王转世),虎(护)族修罗兄弟(异卵双生),净土宗大尊关门弟子明觉行者(净土宗世间行走),五人组成玄学天团,闯荡阴阳界,梳理华夏龙脉,一扫阴阳界混乱。 (阴阳界首卷,也是起始卷,名字“仇仙”) ps:每天一章,不会多更,如无意外阴阳界600万字起,终生系列,每卷单发单本。 书友群号:阴阳界之仇仙 76922085满堂花醉三千客,一剑霜寒十四州。 觉醒了【无上剑心】的落魄皇子段宗成为了天山剑派的观剑弟子,手握灵剑,他能看到剑中蕴藏着的人生大道。 手持千万灵剑,掌握千万剑意。 【白打流派,无双剑道,灵剑名曰‘开山’】 【 洞虚万法,诛杀奸邪,灵剑名曰‘诛邪’】 【长生不死,永存不灭,灵剑名曰‘不朽】 观剑百年,修行百年,一百年光阴,从无名小卒到不朽剑帝,段宗见过前来偷取灵剑的异国皇子,得到过段宗的指点,也见过重返天山剑派的妖女得到过段宗的赏赐,百年之后,天帝去世,天牢妖魔重现天下,剑派危在旦夕,千钧一发之际,段宗带着不朽剑走出剑阁。 “本帝在此,狼狈为奸者,谋权篡位者,倒行逆施者,妖言惑众者,都要死!” 一位拥有着超能力的废材,会发生什么样的故事呢?秦柯扫了算命先生手绘的二维码,下载了一款神奇的手机app,这款神奇app名曰“仙魔交易商城”,商城内买卖各种奇珍异宝,这些东西以前的秦柯莫说见过,就连想都不敢想。  从此,籍籍无名的平凡小青年,开始走上人生巅峰…中华大地,文化博大精深,源远流长,造就一批批的文人才子,王侯将相,普通大众,也就是再这样的情况下,成就今天的中华文化,中华精神。 从小民百姓到达官贵人,从富丽堂皇到乡野之地,从雍容华贵到下里巴人,在这里,我们将会一一领会 文王到始皇,汉高祖到唐太宗,以及王侯将相宁有种乎,都在这里尽情的展翅高飞,发挥属于自己的时代一个末日的到来,人类一败涂地,幸存者们需要在艰难的环境里生存下来,且看林宇如果在这艰苦环境下装逼打虎。  20178年,一位名叫爱丽丝的科学家成功研究出了时空穿梭技术。但在时空机器的发布会当天,把自己当作实验对象的爱丽丝卷入了时空机的爆炸,并因此被时空乱流传送到了21世纪末。   由于记录23世纪至45世纪历史的文献在战争中被毁,爱丽丝决定隐藏自己的身份,在记录历史之后再尝试回到未来。但爱丽丝没能想到,这将会是她一生中最后悔的决定。刘天莫穿越了,只想老老实实的做个大闲人,但奈何实力不允许。 内忧外患,愣是逼成了救世主,无所不能! 种田,发展工业,驱除外侵…… 且看我,如何成为一代枭雄!世界本无对错,人间也无善恶,人也罢,兽也罢,都是为了活着,道不同,不相为谋。注:本书节奏较慢,二十章才是个小高潮,阅读前请先给作者一张原谅票,不管看不看,小比作者先谢谢各位了平凡少年如何在异世翻起惊涛骇浪?如何从一个普通的老实人成为一个至高无上的强者?强者之路,注定逆天而行! 世事不寻常,命恐一朝丧! 即命由天定?? 倘若不为,命仍定? 呵!不可能的!那就证明天只是更强的“人”而已! 那我为何不能取——而——代——之!!
导线 灵力复苏我无敌了 盗墓:开局相亲霍秀秀 旅程:我在各世界旅游 废土之上 浮生鬼道 网游:风入神州 血色的路途 绸古 最完美的犯罪 缚天咒君 轩盏龙炎 星际元帅在七零 神谕万族 玄幻:我真不是剑仙 最强小师叔 短篇小说集:一八 神之末代 闻西的故事 地球特攻队 濮阳汽车站时刻表 丽水到金华汽车票价 枣庄到泰安的汽车票价 承德到北京汽车在哪坐车 濮阳汽车站时刻表 郴州至惠州汽车时刻表 吴桥拉汽车 天津到湖南汽车多长时间 郴州至惠州汽车时刻表 苏州53路汽车 赤峰到西乌其汽车 赤峰到西乌其汽车 扬州到合肥汽车时间 丽水到金华汽车票价 莆田有到烟台的汽车 长治到衡水的长途汽车多长时间 连云港兴化汽车站网上订票官网 合肥到周集的汽车 深圳到东兴汽车票 莆田有到烟台的汽车 杭州城站到迪士尼汽车 济宁合肥汽车多长时间 深圳到东兴汽车票 佛山至高要的汽车 廊坊到滦县汽车 南城汽车站到拱北口岸 合肥到周集的汽车 深圳到东兴汽车票 城站汽车客运站在哪 合肥到周集的汽车 承德到北京汽车在哪坐车 杭州城站到迪士尼汽车 台儿庄到新沂的汽车 莆田有到烟台的汽车 扬州到合肥汽车时间 长治到衡水的长途汽车多长时间 蔚氏到开封汽车时刻 吴桥拉汽车 扬州到合肥汽车时间 蔚氏到开封汽车时刻 长治到衡水的长途汽车多长时间 天津到湖南汽车多长时间 襄阳到惠州汽车站时刻表 连云港兴化汽车站网上订票官网 嘉兴到太原的汽车票 杭州城站到迪士尼汽车 赤峰到西乌其汽车 长治到衡水的长途汽车多长时间 南城汽车站到拱北口岸 汽车车票上有什么信息吗 亚星官网 亚星官网 亚星官网 亚星游戏官网 亚星官网 天命劫祸 开局创造比奇堡三大将 封闻大陆 临道仙途 我在人间当道士 亚星管理平台 葡京官网 亚星管理平台 欧博官网 亚星管理平台 昆山汽车站到南通东站 长治到衡水的长途汽车多长时间 枣庄到泰安的汽车票价 深圳到东兴汽车票 蔚氏到开封汽车时刻 连云港兴化汽车站网上订票官网 嘉兴到太原的汽车票 合肥到周集的汽车 汽车车票上有什么信息吗 莆田有到烟台的汽车 莆田有到烟台的汽车 吴桥拉汽车 连云港兴化汽车站网上订票官网 阜阳北到合肥汽车时刻表查询电话 濮阳汽车站时刻表 赤峰到西乌其汽车 襄阳到惠州汽车站时刻表 番禺汽车站到从化汽车站时刻表 佛山至高要的汽车 城站汽车客运站在哪 蔚氏到开封汽车时刻 杭州城站到迪士尼汽车 昆山汽车站到南通东站 汽车车票上有什么信息吗 承德到北京汽车在哪坐车 昆山汽车站到南通东站 汽车车票上有什么信息吗 丽水到金华汽车票价 丽水到金华汽车票价 承德到北京汽车在哪坐车