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
深圳在路上电影简介浪潮电影 蒂姆电影大城小事兵人电影续集色情电影线播观看深圳在路上电影简介雄猫电影优酷电影大城小事年底电影2016燕南飞电影笑中带泪的爱情电影电影大城小事叶子媚的电影全集笑中带泪的爱情电影韩国 电影 角色扮演燕南飞电影那小子真帅电影 演员电影白马传奇色情电影线播观看青之炎电影在线观看欧洲虐待电影电影白马传奇年底电影2016求香港黄色电影韩国电影主角5男一女冲上云霄电影 豆瓣韩国电影主角5男一女邻家女孩惊悚电影影评青之炎电影在线观看秘书电影迅雷下载讲述一群武馆的现代少年少女穿越到神奇的东方玄幻大地的一段奇异旅程,就是纯粹搞笑和沙雕(不过可能我写的不够沙雕也不够搞笑,哈哈哈哈)开心就好。当你在一个伸手不见五指黑暗中,一道光突然战线你的身边,缓缓的抬起头,看着一个人手中拿着锤子砸断了被压迫在你身上的那条链子,用镰刀划拨了天空中的黑夜,一道道光顺着黑暗的裂口绽放出来。当科技撞上魔法的狂潮,以太之光闪耀,新世界降临。 “所谓火种,乃是为人类的生存繁衍做出巨大贡献甚至能够改变世界的元素。 我曾想,第一次火种便是人类还是猴子的时候学会了使用火焰,驱散黑暗和寒冷,抵御猛兽,使人类在这片土地得以繁衍生息。 第二次,人类发现了火焰之中蕴含的强大力量,制造出了机械,自此也彻底站在了这颗星球的物种之巅,而随之而来的便是无休止地战争。 第三次,人类发现了铀以及一大批的放射性物质,核武器的出现更是使得生命如同草芥! 而如今,第四火种出现,超脱于构成世界的四元素,存在于万物之中,以太,它将传说中的一切展现在你我的面前,拥有无限的可能!”重生,生命体进化,文明等级进化,科幻探索冒险少年李宽本是李家一个低等的奴仆,却因为一次奇遇走上了修炼的道路。 这是本现实的类似穿越类的小说。 讲述了关于“我”本是一个生活不易的普通人,但不知道什么原因拥有了两个人的思想,也就是两个人生于是决定为了找到人生的意义再拼一把的故事。 这是本作者的开山之作,所以我是很认真的去写,当然也会查阅大量资料只图它不会太超越大家的认知。 我也真切的喜欢大家能够喜欢这篇作品。 安云凡身份成谜,师承玉青子,成为道门第一天师,一路斩妖除魔维护人间,在历劫后知道自己真实身份的他将会如何选择?是继续秉承自己的道心还是?天道俯视众生,凝聚世间万法打造九重天阙,与之共鸣者可获天赐命魂,踏上修行登天之路。 顾铭,大楚史上第一个获赐七品命魂之天才,然成年之日,父母被杀、家族被灭、命魂被夺,临死之前侥幸踏入剑冢,铸造鸿蒙剑体,修行无上剑道。两年之后,顾铭离开剑冢重返世间,踏上剑道至尊之路,一剑可斩仇敌、可破九天、可镇诸天万域。身为没有任何社交的废柴大学生,在一天晚上打游戏的时候,意外猝死了,更意外的是,我带着前世的记忆重生了,在一个未知的世界,我会怎样度过我在异世界的第二个人生呢?“苍天已死,黄天当立,岁在甲子,天下大吉。”黄巾起义 ,群雄逐鹿 ,东汉末年,皇帝昏聩,宦官专权,民不聊生。乱世风云谁际会,一威之震化龙飞,青梅煮酒论英雄,天下豪杰出我辈。历史犹如一座舞台,你方唱罢我登场,世事如棋局局新,执棋人终将变成棋子…
全能武王 仙帝大道 武神降临之不可一世 鬼王降临 汤问 放我离开 于我无益 太虚彼岸 超级模拟器,穿越,重生! 国家电力 侠二代的江湖历险 泄密系统的群聊 玄天劫录 皇天战尊 八块大陆 唯我唯路 我喜欢的女孩子们 异能穿越到我身 邪圣剑舞 八荒登仙 年底电影2016 色情电影线播观看 叶子媚的电影全集 电影大城小事 年底电影2016 电影院影厅入口一般在哪里 叶子媚的电影全集 笑中带泪的爱情电影 欧洲虐待电影 80年代 法国青春电影 雄猫电影优酷 雄猫电影优酷 中国关于龙神话的电影 色情电影线播观看 深圳在路上电影简介 色情电影线播观看 那小子真帅电影演员 中国关于龙神话的电影 电影院影厅入口一般在哪里 电影大城小事 师生爱情电影 电影大城小事 电影院影厅入口一般在哪里 电影白马传奇 燕南飞电影 电影录音系统 中国关于龙神话的电影 浪潮电影 蒂姆 电影院影厅入口一般在哪里 冲上云霄电影 豆瓣 色情电影线播观看 80年代 法国青春电影 兵人电影续集 深圳在路上电影简介 求香港黄色电影 韩国电影主角5男一女 兵人电影续集 那小子真帅电影 演员 求香港黄色电影 韩国 电影 角色扮演 韩国电影主角5男一女 那部电影隔壁邻居在电话里 青之炎电影在线观看 那小子真帅电影演员 笑中带泪的爱情电影 80年代 法国青春电影 电影冷山经典句子 韩国电影主角5男一女 电影录音系统 内地喜剧电影发展 亚星官网 亚星游戏官网 亚星游戏官网 亚星官网 亚星官网 帝道第一人 开心超人联盟之希望再现 修吾记 我真的只想躺平 我的二十岁少年时代 亚星游戏官网 万利游戏官网 欧博游戏官网 亚星游戏官网 葡京官网 秘书电影迅雷下载 那部电影隔壁邻居在电话里 冲上云霄电影 豆瓣 叶子媚的电影全集 内地喜剧电影发展 中国关于龙神话的电影 那小子真帅电影 演员 年底电影2016 中国关于龙神话的电影 燕南飞电影 色情电影线播观看 叶子媚的电影全集 求香港黄色电影 浪潮电影 蒂姆 求香港黄色电影 色情电影线播观看 青之炎电影在线观看 求香港黄色电影 电影冷山经典句子 青之炎电影在线观看 电影大城小事 80年代 法国青春电影 电影大城小事 禁欲电影迅雷下载 兵人电影续集 电影院影厅入口一般在哪里 中国关于龙神话的电影 浪潮电影 蒂姆 电影白马传奇 兵人电影续集