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
飒漫画美少年的诞生图男男漫画肉污飒漫画美少年的诞生图漫画创作说明怎么写漫画大刑伺侯肌肉爆炸漫画青春之旅漫画49话图飒漫画美少年的诞生图路人*黄濑漫画山田秀树最新漫画漫画沙僧图片大全飒漫画美少年的诞生图小当家老版带漫画书漫画群子丧尸生存题材的漫画山田秀树最新漫画人妻秘密档案漫画2漫画好处漫画好处天鹅绒之吻漫画第三集吉他少女漫画图片大全图片大全图片漫画好处路人*黄濑漫画画风很老的漫画漫画大刑伺侯瞬零漫画结局了么漫画创作说明怎么写画风很老的漫画天鹅绒之吻漫画第三集小当家老版带漫画书在一个喜气洋洋的大年夜,一道身影悄悄离开了这喧闹的街市,来到了一片莽莽榛榛的原野。他靠着一棵枯树坐下。这棵树的枝干早已腐朽,稍有动静便吱吱呀呀地叫个不停,给这寂静的原野添了一种神秘又略带诡异的色彩。   可是,他似乎并不介意。远处,低矮的灌木丛中,闪烁着一点点淡绿的幽光。这一定是那些萤火虫为路人点起的灯吧。   他又抬起头。漆黑的夜空上,挂着几颗明亮的星。当然,也有一些星星是那样的忽明忽暗,飘忽不定。它们,是为了什么呢?   他想着想着,最终仍是累了,倚靠着枯树沉沉地睡去。这时,地面上传来了一阵杂乱的脚步声,越来越近,越来越近,危险,就要来了啊。    在这个没有传说的世界里,鬼怪们成了人们研究的最为诡异,而他们研究出了对付鬼怪的能力,主角却并不拥有这能力,可他才是结局亦是开始。仙域女帝姬如霜惨遭暗算,自爆而亡。 机缘巧合一缕神魂转世投胎下界仙朝! 复仇大业未行,却发现隔壁居然还有一个男婴。 “哼,不过是长生路上的累赘罢了。” 可接下来,女帝却发现自己的这个弟弟有些变态。 放弃神药灵液,居然让她觉醒轮回道体! 摸摸自己,居然让她修为翻倍! …… 面对哥哥的无限宠爱,女帝则是羞红了脸。 “哼,雕虫小技!” “复仇当前,本帝怎么可能屈服于这个男人的施舍。” “嗯,神药真香!谢谢哥哥!“云云众生,草根人物,命运多殂,应何以为之?何以搏之? 滚滚的历史长河,浩如烟海的典籍,人神鼻祖,帝王将相,先贤哲人,无不树碑立传,著书立说,话其伟绩。然而,蝼蚁草芥经历了怎样的狂风暴雨,遭受了何等的苦难辛酸,亦或是又品尝了那些快乐幸福,少有问津,甚是惨淡。今攫取其中的颗粒,让芸芸众生在茶余饭后,闲暇无趣之时,偶尔翻翻,聊以打发寂寞的时日,慰藉空虚的灵魂;也可以让那些迷途的羔羊,引以为戒,奋发图强,在恰当的时间里,在适合自己的道路上披荆斩棘,勇往直前,创造属于自己的辉煌。更可以解剖人生,探究灵魂,寻求真谛,放飞心灵,让假丑恶在烈日下暴曝,使真善美在甘露里滋养;让华丽掩藏的肮脏暴露在阳光下面,使正义湮没的腐臭吹散于飓风之中。不希望名流千古,也不奢求身家有值;只是在人生末途散发余热,在风烛残年不蹉跎岁月;也可以说是菩提下的空悟,是灵台里的忏悔;是坎坷崎岖道路上的觉醒,也是酸甜苦辣滋味里的品尝。 女孩臻浅患有严重的被迫害妄想症,遵照医嘱在放学后独自散心。不料,之后目睹男孩“魏砷”杀人现场。在一场惊心动魄的逐命逃亡后回到家中,一觉醒来,陡然发现时间倒转。面对倒转的时间,步步紧逼的凶手,她该何去何从……冯宇熙生活在精灵世界,这里有各种神奇的精灵,等你来收服玄天大陆,武道为尊!强者可以脚踏虚空遨游太虚,举手之间可破碎山河。 废物少年叶宁意外觉醒前世大帝记忆,获得天地至宝蕴神莲!从此握手青锋,败天下无数天骄! 前世的仇,今世的恨,他叶宁一一会报。林耀被老头子暗中定下婚事,本想下山退婚,但当看见未婚妻本人时,他态度发生一百八十度转变:“我的媳妇,竟然是冰山女神……”天道万年一纪,有阴阳无极之分。阴阳替换无极成为新天道。百年后出现皇极道人,为三清师父。后来企图代替天道失败,又教导一人,为无极天尊。无极天尊创立正一宗。三清遵循天道轮回,正一遵循天道无情。两派不和。 林仙一为千年人皇。 我有一尺可设规,衡量大道! 我有一剑可斩邪,守护大义! 我有一印可令天,三千神佛定乾坤! 菩萨低眉,所以慈悲六道! 撒旦低头,所以血流成河! 以撒旦之名,专职杀戮,他要当最强的那个男人! 最燃的都市,且看一个男人如何成就霸业,成为傲立巅峰的一代传奇!   【七少出品,铁血霸气】 撒旦军团群:198247503
万族之劫:我觉醒了神相 星海远征记 玄幻:开局系统自动疯狂升级 饿狼传说之灭世狼皇 一剑证长生 开局一头牛 天下第一卦 轮回:无尽之战 长生入微 清风化尘录 零充为王 父子硬核闯万界 千乱 青山下的田园 虎踞新纪元 一剑纵横 猛龙出狱 冷少的逆天大小姐 正值青春萌动时 我的朋友是创世神 狐妖小红娘漫画293免费 漫画手机壁纸 高清 人妻秘密档案漫画2 漫画大刑伺侯 狐妖小红娘漫画293免费 死神黑白同人漫画 日本漫画人妻. 蓝翅漫画68第四 瞬零漫画结局了么 一个人雨天漫画图片 路人*黄濑漫画 漫画调教地狱 少爱漫画全集免费阅读 漫画手机壁纸 高清 肌肉爆炸漫画 漫画大刑伺侯 日本漫画人妻. 瞬零漫画结局了么 吉他少女漫画图片大全图片大全图片 飒漫画美少年的诞生图 漫画手机壁纸 高清 丧尸生存题材的漫画 男男漫画肉污 漫画群子 山田秀树最新漫画 少爱漫画全集免费阅读 瞬零漫画结局了么 男男漫画肉污 吉他少女漫画图片大全图片大全图片 瞬零漫画结局了么 漫画大刑伺侯 漫画手机壁纸 高清 漫画meinutuoyi 肌肉爆炸漫画 画风很老的漫画 漫画大刑伺侯 漫画meinutuoyi 人妻秘密档案漫画2 少爱漫画全集免费阅读 丧尸生存题材的漫画 漫画创作说明怎么写 一个人雨天漫画图片 莽荒纪漫画下划版免费 漫画调教地狱 漫画群子 漫画手机壁纸 高清 漫画调教地狱 漫画创作说明怎么写 少爱漫画全集免费阅读 青春之旅漫画49话图 亚星官网 亚星官网 亚星游戏官网 亚星官网 亚星官网 浪荡人生 凌枫传 一个农村娃娃的梦想 降魔秘典 小A的游戏人生 精灵:这个馆主不务正业 万利游戏官网 欧博游戏官网 欧博官网 万利游戏官网 AG真人 丧尸生存题材的漫画 漫画沙僧图片大全 莽荒纪漫画下划版免费 萝莉触手口工漫画 漫画大刑伺侯 吉他少女漫画图片大全图片大全图片 狐妖小红娘漫画293免费 山田秀树最新漫画 山田秀树最新漫画 漫画好处 青春之旅漫画49话图 蓝翅漫画68第四 男男漫画肉污 少爱漫画全集免费阅读 漫画群子 小当家老版带漫画书 死神黑白同人漫画 漫画手机壁纸 高清 肌肉爆炸漫画 漫画群子 漫画好处 男男漫画肉污 男男漫画肉污 漫画手机壁纸 高清 山田秀树最新漫画 漫画大刑伺侯 漫画好处 蓝翅漫画68第四 小当家老版带漫画书 漫画调教地狱