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
甩葱歌恶搞歌词歌词里有青春太短你是我的缘lrc歌词下载毛阿敏满城烟花de歌词黄飞鸿主题歌词甩葱歌恶搞歌词逝去的爱华晨宇歌词你是我的缘lrc歌词下载是呀我变了歌词彼此周笔畅的歌词偏爱仙剑奇侠传三歌词你是我的缘lrc歌词下载歌词有小女人偏爱仙剑奇侠传三歌词傲娇与偏见歌词下载彼此周笔畅的歌词歌词你在我身旁照顾谁岳靖川《瞬间》歌词岳靖川《瞬间》歌词龙卷风邓紫棋歌词歌曲《提篮小卖》歌词岳靖川《瞬间》歌词是呀我变了歌词下一次微笑 歌词 杨丞琳mc小宏杀无赦歌词我愿做一棵大树是什么歌词mc小宏杀无赦歌词下一次微笑 歌词 杨丞琳龙卷风邓紫棋歌词歌曲歌词有小女人少年苏渊经历三次凝丹失败,机缘巧合拜四圣兽之一的青龙为师,踏入武道之途,并且开启自身龙族和凤族血脉,从此天高海阔,前途无量。 探索秘境,结天骄,诛邪魔。在禽与兽的探索中走向自己的人生巅峰 在风谷道馆地下室捡到了人皮书的张鹄,探索着人皮书上给出的一个个任务,解开了身上的一个个能力,逐渐触碰到灵异的真相。   张鹄利用人皮书以一个还愿师的身份驾驭厉鬼,走上了一条与灵异事件处理司截然不同的道路。一方面抗衡厉鬼,一方面抗衡灵异事件处理司。 另外他发现,人皮书做完的任务赋予他的能力,逐渐把他也变成了一个鬼,来到了死后的亡者世界,见到了所有的前任还愿师,还愿师的目的是掌控亡者世界,让它不至于失控,他要重新规划亡者世界的规矩和法则,只是刚到亡者世界的张鹄在这里的实力和刚触碰灵异事件的他一样,这是一个新的开始,一次在亡者世界的变强之路。稳坐心理学领域领军交椅的秦尧,在一次犯罪团伙交战中被人开枪打死了,等他再次睁开眼睛时,他竟然成了一国之君,君临天下的他,在面对诡谲波澜的皇权争夺战中,他能否稳操胜券,力挽狂澜稳定朝堂?更有甚者当初开枪打死他的人,竟然成为了外番与之交好的献礼……刘扬阴差阳错偷到了一个打不开的盒子,结果立马招到了追杀。 几大势力为了得到盒子,各显神通。 刘扬很无奈: “盒子里到底是什么啊?一个破盒子你们至于吗?” “你们打我之前,怎么自己先打起来了?” “色诱我忍了,但你来个男的什么意思?” “我只想搞钱,你们却想搞我的命。” “nm,是不是非要用核弹才能打开它?” “只要你方不动用盘古斧,我方就承诺不会使用这个盒子。” 本书又名:《只要我自杀的够快就没人能杀死我》、《幸好我没有三亿美元就卖掉盒子》、《小偷照样一打十》、《一个盒子拯救世界》。馨玛尔王国军的刺客,莱格蔷薇家的正统传人,某个契机下和姐姐拉娜踏上冒险之路,这是达裘拉·莱格蔷薇追寻自我的冒险。 “无论身体受到何种伤痛,发生何种改变,这颗能够盛开出曼陀罗的心也不会动摇,达裘拉·莱格蔷薇,不再是曾经的道具了。”在一片大陆之上,国家繁多,相互征伐,国家更迭极快,更多武林之士,更愿意依靠盟派的庇护由此,练武成仙的热潮兴起,致使人间霍乱频发。在天虞中有一人,出身不凡,却喜好游历各地……这是一位名为罗格的少年,为了拯救大陆的生灵,而向神明宣战的故事。 “高高在上的神明啊,我在此代表着大陆上所有祈求和平的生灵向你宣战!” “我们将通过这一战,向你证明我们拥有能够威胁神明的力量!” 这是一段充满痛苦与救赎的旅程,是一个名为罗格的一生。穿越成为皇帝,不想只有几百民村民。 武有杀猪匠,文有老管家。 维
重逢艾泽拉斯 龙纹战神 逆天改命之最强圣人 在小说世界里穿行 神落前川 军中情报人 诡异密匙 我不想出山啊 迫降大西洋 异界最强户口本 我真的只想苟着 异变灵界 辰世尊 少年仙尊 妖孽王二狗 我家的末世少女 永恒的无上邪尊 紫荆魔宫 血之魅影之天下之盟 穿越未来之无限空间 来不及再见的歌词 心里大雨倾盆的下歌词 歌词你在我身旁照顾谁 黄飞鸿主题歌词 来不及再见的歌词 这信心越来越刚强文字歌词 歌词你在我身旁照顾谁 我的爸爸歌词。 我愿做一棵大树是什么歌词 我的热情歌词 奥利给伴奏歌词 奥利给伴奏歌词 歌词 命mc可镇恶 心里大雨倾盆的下歌词 甩葱歌恶搞歌词 黄飞鸿主题歌词 都来咪英文歌词乐谱 我愿做一棵大树是什么歌词 一个都不能少 国语 歌词 你是我的缘lrc歌词下载 心里大雨倾盆的下歌词 傲娇与偏见歌词下载 歌词里有青春太短 偏爱仙剑奇侠传三歌词 彼此周笔畅的歌词 歌词 命mc可镇恶 我愿做一棵大树是什么歌词 歌词里有青春太短 一个都不能少 国语 歌词 我愿做一棵大树是什么歌词 黄飞鸿主题歌词 如果感情的路可以重新来过歌词 毛阿敏满城烟花de歌词 甩葱歌恶搞歌词 下一次微笑 歌词 杨丞琳 黄飞鸿主题歌词 毛阿敏满城烟花de歌词 歌词你在我身旁照顾谁 歌词 命mc可镇恶 傲娇与偏见歌词下载 mc小宏杀无赦歌词 我的热情歌词 处处一个吻歌词 都来咪英文歌词乐谱 偏爱仙剑奇侠传三歌词 如果感情的路可以重新来过歌词 奥利给伴奏歌词 mc小宏杀无赦歌词 歌词 命mc可镇恶 逝去的爱华晨宇歌词 亚星官网 亚星官网 亚星游戏官网 亚星官网 亚星官网 穿越有外挂 噩梦之主 轮回之孽,九世之缘 复定天地 还魂小记 澳门葡京游戏官网 葡京官网 AG真人 澳门葡京游戏官网 万利官网 歌词里有青春太短 这信心越来越刚强文字歌词 毛阿敏满城烟花de歌词 下一次微笑 歌词 杨丞琳 来不及再见的歌词 龙卷风邓紫棋歌词歌曲 逝去的爱华晨宇歌词 心里大雨倾盆的下歌词 歌词你在我身旁照顾谁 甩葱歌恶搞歌词 歌词 命mc可镇恶 你是我的缘lrc歌词下载 心里大雨倾盆的下歌词 毛阿敏满城烟花de歌词 你是我的缘lrc歌词下载 歌词里有青春太短 傲娇与偏见歌词下载 黄飞鸿主题歌词 歌词有小女人 岳靖川《瞬间》歌词 毛阿敏满城烟花de歌词 如果感情的路可以重新来过歌词 这信心越来越刚强文字歌词 歌词 命mc可镇恶 下一次微笑 歌词 杨丞琳 彼此周笔畅的歌词 偏爱仙剑奇侠传三歌词 我的爸爸歌词。 是呀我变了歌词 一个都不能少 国语 歌词