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
和女朋友一起玩她妈妈 小说无限未来+有声小说和女朋友一起玩她妈妈 小说古风耽美小说攻腹黑帝王 受清冷他国臣子小说 长安邪灵入侵 小说fate 小说全集和女朋友一起玩她妈妈 小说美女吃人 小说部落的崛起 有声小说免费观看在线 av小说和女朋友一起玩她妈妈 小说入地眼小说 最新章节逸王爷 小说小说张宇飞部落的崛起 有声小说末世异小说老婆 前男友 成人小说老婆 前男友 成人小说精神分析小说郑秋 小说老婆 前男友 成人小说美女吃人 小说如此深情 小说小说 长安权振东小说古风耽美小说攻腹黑帝王 受清冷他国臣子如此深情 小说精神分析小说入地眼小说 最新章节如果世界不公,我就打破这个世界;我叫无尘,我要让这三界再无尘埃。身陷囹圄,陆抗得天魔本源相助,逃出生天。 没有灵根,陆抗以血祭之法强行开辟,从此修行得道。 修行魔道,却不为恶,妄称正义之辈莫坏我自在逍遥。 偶行善事,自诩邪恶之徒莫言我虚假仁义,阻我大道朝天!生逢乱世,不求渡尽苍生,只求命数己定。 . 一生坎坷,只为与天争朝夕之命; 一生如画,水墨飘香自乱世情仇; . 幽火熊熊焚芸芸之众生,风雷阵阵破无间之魍魉;流星雨来,小行星至,地球面临灭顶之灾。 劳士力前往太空执行任务,返航途中救下乔伊娜。 火山灰笼罩地球,航天飞机不能降落。 几近绝望的劳士力和乔伊娜,以登录梦幻社区虚拟世界寻求心理上的宁静与安慰。 他们将承担起人类繁衍与发展的重任…… 一切都在AI控制中……左手为阴,右手为阳,自成乾坤,脚踏虚空,除魔证道。掌天地之轮回,握万界之生死。“天下苍生,于我身后,活下去!” 他,人皇传承者,承载三界生的希望。 他,冰封数千年后醒来,仍不忘守护的誓言。 他,不喜杀戮,却不得不在血雨中成长。 他,以一页纸张,汇聚众生意志,护佑苍生。 这个人间,需要英雄! “幼稚吗?那就让我继续幼稚下去吧,只要人间还有笑容,只要苍生还有归处!” “我,韩羽,立道于苍生之上,护佑于苍生之前!”重生在了天道即将崩溃,鸿钧三清远走寻到,天地王母受援以进,现代科技飞速发展,对于修行却是半开放的世界,江屹煊被选为了复苏天道的棋子。 对于这些,江屹煊有话说:“我只想把仙丹当糖豆,把八九玄功当炼体术,让亲人无病无灾。用真火来炒菜,用灵泉当家庭饮用水,让石材释放出它最美味的口感。对于复苏天道什么的,谁爱作谁作,我没兴趣!”新高考替代就高考掌揽教育大权,推进六选三改革,为检验各科实力如何,新高考开展了学科战争。这是一个令人激动的年代,无数的机会令人神往;这也是一个冒险的时代,未知的风险又令每一个人不寒而畏。看唐求重回高中后如何翻云覆雨在时代的大潮里冲浪,建成庞大的商业帝国。一朝翻身把歌唱,六宫粉黛无颜色。 情怀?赚钱和报国并不冲突吧。再说我这是为国家的千秋大计铺路,个人顺便发点小财怎么啦? 女人?就是应该用来爱的。至于因情生怨、想伤害我的,根本不存在!再说,她们舍得吗? 对手?别给我下绊子下套子妨碍我赚钱,很多手段哥不是不会用而是不屑用。但是一旦我用了,你不要后悔!哥达到的境界,是从一路荆棘里杀出来的![纷扰如迷雾,逍遥且徐行] 入梦方醒,方觉大道维艰。从小世界意识回归醒来的大光头,抬手摸着自己脑瓜低吟着“无量天尊。” 看着身边传讯符,回忆着这次化身从婴儿到意气少年,又度过颠簸抗争的青年路程,往后便好似不记得自己有过壮年中年似的,回首时已在疑惑困顿中到了老年。 化身一生寂寥糊涂过,只留下一首连通顺都算不得的唯有悔恨的“一年一岁婴至此,一时一秒得与失。稻草压身抵千斤,默然回首如何持。神杂性善恶七情己,人和人白白入灰多。己识多实错分年,霎那蹉跎七十婴。” 又有那好似从老年到青年活着的感慨:“何所思何所愚何所怠,七十婴五十少三十明。天色长空人自老,道存事存时不存,上下空有物竞乾坤灭,事合人思万中无一寻。谁家孩儿拿那炮竹当烟花鸣一曲,潜游无欲无求后同求不在求呢。苦无一用怎是迷生。”
洛洛历险记之最终对决 我真没想统一三国 幻世年华 变频 开始工业革命,才知道是仙武大秦 神行启示录 长安鉴 元宇宙之创世传 光之巨人:我是迪迦 天人绝路 程门立雪 天枰世界 世界之罪!? 重生之我的爷爷制霸音游圈 地狱踏破 真罪:永恒之时 元宇宙:大敌当前 冥界公务宣传员 小姨,别跑 男人三十 抱住老婆 小说 fate 小说全集 无限未来+有声小说 《大女当婚》 小说 抱住老婆 小说 和女朋友一起玩她妈妈 小说 重生之情浅缘深 恒见桃花 小说 女主是经纪人曾经是职业粉 小说 邪灵入侵 小说 美女吃人 小说 初子的小说 权振东小说 苏菲的世界mp3 小说 末世异小说 老婆 前男友 成人小说 娇妻如云 锦瑟 小说 重生之情浅缘深 恒见桃花 小说 邪灵入侵 小说 连中六元的人 小说 逸王爷 小说 fate 小说全集 免费观看在线 av小说 精神分析小说 入地眼小说 最新章节 末世异小说 苏菲的世界mp3 小说 邪灵入侵 小说 精神分析小说 连中六元的人 小说 邪灵入侵 小说 娇妻如云 锦瑟 小说 fate 小说全集 反腐小说 纪检委书记被杀 逸王爷 小说 小说张宇飞 娇妻如云 锦瑟 小说 反腐小说 纪检委书记被杀 无限未来+有声小说 苏菲的世界mp3 小说 免费观看在线 av小说 部落的崛起 有声小说 男男小说缠绵入骨继续阅读 小说 长安 权振东小说 入地眼小说 最新章节 fate 小说全集 权振东小说 部落的崛起 有声小说 古风耽美小说攻腹黑帝王 受清冷他国臣子 郑秋 小说 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 我是流浪者 表白校花,获得魔幻水晶果 龙凤镇疑云 空间传说之能量风暴 青讲鬼故事 亚星管理平台 葡京官网 AG真人 澳门葡京游戏官网 万利官网 入地眼小说 最新章节 权振东小说 邪灵入侵 小说 娇妻如云 锦瑟 小说 如此深情 小说 末世异小说 和女朋友一起玩她妈妈 小说 重生之情浅缘深 恒见桃花 小说 反腐小说 纪检委书记被杀 免费观看在线 av小说 初子的小说 如此深情 小说 郑秋 小说 和女朋友一起玩她妈妈 小说 连中六元的人 小说 逸王爷 小说 古风耽美小说攻腹黑帝王 受清冷他国臣子 fate 小说全集 抱住老婆 小说 部落的崛起 有声小说 女主是经纪人曾经是职业粉 小说 逸王爷 小说 重生之情浅缘深 恒见桃花 小说 《不 伦之恋》耽美小说 免费观看在线 av小说 邪灵入侵 小说 权振东小说 初子的小说 郑秋 小说 无限未来+有声小说