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
桂林市顶管价格wp1ag292 价格桂林市顶管价格ledipasvir价格丙肝 达卡价格石化公司塑料原料?F厂价格XeulOS2008价格桂林非开挖顶管价格湖南卷扬钢丝绳价格合理冲形背胶魔术贴厂家价格交警拖车价格桂林市顶管价格五粮液天之骄子500m|价格奔富 bin51 2013价格桂林非开挖顶管价格冲形背胶魔术贴厂家价格单冻鸡胸价格晚装酒吧价格表晚装酒吧价格表菏泽藏獒+价格江苏海安废纸板价格晚装酒吧价格表湖南卷扬钢丝绳价格合理惠康床垫1.8 2.0价格丙肝 达卡价格最便宜长城雪茄烟价格ledipasvir价格惠康床垫1.8 2.0价格菏泽藏獒+价格五粮液天之骄子500m|价格一个残疾人靠着幽默在现实直播中实现自身价值。 一个粉丝心中的无冕之王。 老婆多,是他的第一个标签。灵魂歌手,尿床是他的家常便饭。【系统+末世+修仙+恶搞+无敌+爆笑】 苏依山重生之后,发现整个世界变了,凶兽横行,神祇鬼怪降临。 他却被系统诅咒,他身上的一切因果都将反转。 剑神:“我这一剑斩中他的大动脉了,必死无疑。” “为什么他还在喷血,就是不死?” 苏依山:“兄弟,看你伤得不轻,我给你来个治疗术。” “WDNMD!老子人没了!” …… 苏依山:“听说你很凶,今天你不打死我,就别想走出这道门!” 前期境界练气境、练力境、内壮境、兼修境、不息境、气变境、金身境、御气境。 百年重生,只为重踏巅峰,剑斩苍穹,找回曾经属于自己的传说。 天下第一圣重生百年后,修无上神功,五尺青锋披荆斩棘,争霸天下。 纵死无悔修行路,战血永久不灭,让老苏带你走进璀璨瑰丽的玄幻世界,和主角一起踏上争霸之路,挥洒战血和汗水。【至尊盟:102827635,至尊盟2群:236348988天才府:184868215,微信公众号:苏月夕。】上古大陆,一位拥有先天全体的少年,因为一次意外,引得黑珠入体,从而导致元力全失,至此他失去了所有光彩,族人的陷害让他认识了师尊,在一个分身的教导下,少年披荆斩棘,过五关斩六将,一步步成为真正的强者...... 为了家族命运,少年踏上了独自修炼的征程;为了亲人,他被迫选择了自己不爱的人;为了爱人,他忍受了无数年的自责。 从一个小小的战士,逐步成长为天元大陆至高无上的古神,而最终,为了整个天元大陆,他却付出了所有......命运多舛的少年,不谙世事的灵智,两者的结合在九州大陆掀起了阵阵腥风血雨。 在这里也许会看到华夏神话的延续,也许会看到超强的灵宝,也许会看到上古遗迹,也许会看到各种稀奇古怪的异兽,也许会看到魔之本相……穿越武道世界,江北意外觉醒捡属性系统,可以通过捡取他人身上掉落的属性而提升自己。 于是...... 你拾取了力量*0.6。 你拾取了速度*0.4。 你拾取了体质*0.6。 你拾取了悟性*0.1。 你拾取了基础剑法*50、基础拳法*30、基础腿法*30,你学会了基础剑法、基础拳法、基础腿法...... 你拾取了....... 若干年后。 武道世界遭遇域外强者入侵,人类不敌节节败退几近亡族。就在这时,一家武馆内走出一名武馆学徒,横推众多域外强者,救人族于水深火热之中。大褚,绍清十年。 妖邪诡祟肆虐人间,儒释道三教鼎立天下。 世间修者纵横,欲夺天地之气运,觅长生之无极。 陆宴清异界魂穿而来,却被告知仅有一天可活,后意外发现所谓的儒术竟是古诗! 侥幸活命的他本想悠闲的过上自己的小日子,却被不断卷入一个个风暴之中…… 大学开学前几天,鹿鸣和几个好兄弟一块儿聚了聚。 一向不喝酒的他被几个好兄弟给灌醉后,进走错了厕所,进了女厕所。 当他醉醺醺推开一扇厕所门时,居然看到一个漂亮的女人。 于是乎,他不但被误会成了流氓和变态,还被那女人给狠狠揍了一拳。 …… 两人的缘分就此开始了冥冥有间,止水湔峰。 峰主何名,别号曰玄。 玄之又玄,众妙之门。 门中大千,笔下风闻。 欢迎来到某玄的短篇故事集。残疾少年张铁生,意外获得药王传承,自此村花、俏寡妇,哭着喊着找他治病,而他也成了远近闻名的妇科圣手。
玄幻:开局镇压长公主母女 纨绔剑道 都市:我算命超准 元宇宙:迷失 夜阑之雨 玩牌的我谁也打不过 瞎子剑仙,蜀山观像三百年 跨时代危机 重生:神级御兽师 大唐开局震惊李世民 植人世界 魔法世界成就最强械王 乘翼疾梦 朕要君临天下 老子是仙人 尘世剑 中州造神记 原始起点 狐妖小红娘: 签到生活 耀眼的星辉 弓箭 价格 红米hm1s市场价格是多少 单冻鸡胸价格 丙肝 达卡价格 弓箭 价格 芜湖租婚车价格 酩悦 2004 价格 免税店兰蔻价格表 最便宜长城雪茄烟价格 五粮液天之骄子500m|价格 湖南卷扬钢丝绳价格合理 上海废铝回收价格表 南阳小百货批发价格 红米hm1s市场价格是多少 石化公司塑料原料?F厂价格 丙肝 达卡价格 酩悦 2004 价格 最便宜长城雪茄烟价格 江苏海安废纸板价格 桂林市顶管价格 红米hm1s市场价格是多少 桂林非开挖顶管价格 wp1ag292 价格 奔富 bin51 2013价格 冲形背胶魔术贴厂家价格 南阳小百货批发价格 最便宜长城雪茄烟价格 wp1ag292 价格 江苏海安废纸板价格 最便宜长城雪茄烟价格 丙肝 达卡价格 红米hm1s市场价格是多少 桂林顶管价格 石化公司塑料原料?F厂价格 惠康床垫1.8 2.0价格 丙肝 达卡价格 桂林顶管价格 单冻鸡胸价格 南阳小百货批发价格 桂林非开挖顶管价格 ledipasvir价格 sony电子手表电池1.5v价格 voyo vbookv3价格 上海废铝回收价格表 奔富 bin51 2013价格 红米hm1s市场价格是多少 上海废铝回收价格表 ledipasvir价格 南阳小百货批发价格 XeulOS2008价格 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 蛊道小子 我在梦里钓命运 爷爷重生之少年大贾 断之界 游戏太菜,死后入游戏地狱 葡京官网 快连下载 欧博官网 葡京官网 欧博官网 奔富 bin51 2013价格 sony电子手表电池1.5v价格 弓箭 价格 菏泽藏獒+价格 上海废铝回收价格表 最便宜长城雪茄烟价格 XeulOS2008价格 石化公司塑料原料?F厂价格 江苏海安废纸板价格 奔富 bin51 2013价格 奔富 bin51 2013价格 桂林非开挖顶管价格 桂林顶管价格 菏泽藏獒+价格 voyo vbookv3价格 惠康床垫1.8 2.0价格 晚装酒吧价格表 免税店兰蔻价格表 wp1ag292 价格 菏泽藏獒+价格 红米hm1s市场价格是多少 最便宜长城雪茄烟价格 万宝龙p146 价格 voyo vbookv3价格 江苏海安废纸板价格 奔富 bin51 2013价格 晚装酒吧价格表 弓箭 价格 最便宜长城雪茄烟价格 湖南卷扬钢丝绳价格合理