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
中国动画片大全电视剧大全下载到手机电视剧夏至未至下载最近拍的古装电视剧八两金演过什么电视剧很老很老电视剧中国动画片大全电视剧大全下载到手机四女奇缘电视剧优酷最近拍的古装电视剧云娘传电视剧集最近犯罪电视剧有哪些一土豆迎春花电视剧全集最近拍的古装电视剧古装经典电视剧有哪些一土豆迎春花电视剧全集宋朝电视剧有哪些最近犯罪电视剧有哪些电视剧娘妻19珠江台电视剧珠江台电视剧叶静的电视剧冤家亲家电视剧第一集珠江台电视剧云娘传电视剧集顺治和董小宛的电视剧很老很老电视剧电视剧生死钟声第一集tfboys电视剧超少年密码顺治和董小宛的电视剧叶静的电视剧古装经典电视剧有哪些  我徐阳穿越异能世界,激活神级异能,从此成为战神。 我   一列神秘的列车,无限的末日之旅,传说中的奇诡道术,影视剧里才会存在的怪物,无数个位面,无数次末日,惊奇、诡异、神秘、暴乱,谁也不知道列车的目的到底是什么,也不知道是谁发明的列车,他们更不知道自己到底怎么样才能走下列车…妖乱末世,巨兽屠城,万妖夜行,人间如狱。 神秘少年,半妖之身,踏上猎妖风云路,书写一代妖相传奇! 且看他,猎妖、除魔、斗巨鳖、擒天龙、佐明君、征天下、运筹帷幄、纵横捭阖、荡除妖兽、平定末世!“当时太天真了,以为跟个大哥就有口饭吃,结果……”十三机众人擦擦泪,说:“现在肉都吃撑了,再吃就吃不下去了……大哥别打肉了,再打真吃不完了……什么?晚上还要做肉,老大求你了放我们出去打架吧!” “你们这算啥?”治安署的人一把鼻涕一把泪的说:“以为是两个破小孩拉起个组织要搞事儿,我们都准备好搞了加工资,你这谁想得到我们的治安还更好了……等一下,各位,我先不哭了,好像过了今天我们就是同一个老大了。” 这谁想得到?搞事情的组织还要当头。 这么说,工资的话…… “宣誓了,宣誓了。” 东南三区,并非长久安定;天下之稳,皆因大守门人。 “守门人 李思仁!” “守门人 张耀文!” “守门人 十三机机所有人。” “守门人 春秋战国集团。” …… “还有我还有我,这次我可赶上了。” “张家众人,李达夜和其徒张燚,参上!” 一介凡人妄图与天争个高低,实在是可笑至极,待看这天如何折磨这一介凡人。 我欲红颜斗万法,奈何苍天逆枉情。 【逆苍玄】有声读物已经开始更新,漫画版也在制作当中,敬请期待吴缺穿越平行世界。   这个世界元宇宙技术完全成熟,并诞生了一款名为《文明》的游戏。 人人都可以进入文明世界,成为一名领主。   招募将领,发育兵种,收获资源,攻城略地!   文明世界里所获得的一切都可以带到现实中。 吴缺在进入文明世界时获得了万物增幅系统,通过消耗增幅点数,可以获得华夏历史上的所有任务。   花木兰:“我将永远侍奉您,我的领主,吴缺大人!”   赵云:“我常山赵子龙的所信奉的一切,都因吴缺大人而生!”   李元霸:“跟着我吴缺大哥,才有饭吃!”   诸葛亮:“亮毕生心愿,唯辅佐吴缺大人!” …… 在如此之多的历史人物的辅佐下,吴缺超越同期领主,追赶往期强者,最终身边强者、美女如云,屹立在文明世界的顶峰!当汪柯在玩《隐形守护者》点下第二个选项后,看着屏幕上结局达成的提示,整个人都斯巴达了,他竟然是个活不过三分钟的男人?带着这样的疑问,他被一个谍战求存直播系统丢到了魔改后的谍战世界,开始了他的求生直播。系统告诉他,他的任务很简单,只要活过一集就够了。高田真一“小兰女士,你也不想新一君遭遇不测吧?” 小兰“这... 高田真一“小哀酱,你也不希望柯南君有生命危险吧?” 小哀“这...童念承诺之前说的话,不再抛头露面,待在家里大门不出二门不迈,继续写侦探小说,保持当红女作家的地位。 后来,童念得知自己的父亲成为东署警局第二任局长,心里感到非常高兴。 童念借此机会,想把太叔劂介绍给自己的父亲认识,去了一家电影院,结果发生杀人事件。 《女侦探童念》系列小说的第二部!【模拟人生+三国故事+兄弟情义+人情世故+地盘争霸+轻松爽文,你想看的我这儿都有!】 重生三国成为刘封,获得模拟系统,内有义父刘备处心积虑要找借口弄死他给亲儿子刘禅腾地方,外有曹魏东吴等敌对势力虎视眈眈,且看刘封如何通过一次次模拟失败人生吸取经验,然后在现实中逆风翻盘,成为再兴大汉的英武帝王……
不凡魔道 启星录 八荒古帝 缉凶录 天道六界之光 猎异之界 末日余烬 都市猛兽侠 网游:神级辅助,队友都赢麻了 昊宇 我于异界立天庭 武震江山 我在殡仪馆玩推理 断义恩肠 刑眼 乌云未晞 天下平安 一颗陨石给我的力量 哥的位置 封神之我在商纣当昏君 电视剧反恐特战队猎影在线观看 golf 电视剧 电视剧娘妻19 很老很老电视剧 电视剧反恐特战队猎影在线观看 早期内地破案电视剧有哪些 电视剧娘妻19 17岁校园爱情电视剧 电视剧生死钟声第一集 心里的声音电视剧迅雷下载 云娘传电视剧集 你好乔安30电视剧 怀孕被打的电视剧 golf 电视剧 中国动画片大全电视剧大全下载到手机 很老很老电视剧 3个男变女的电视剧 电视剧生死钟声第一集 电视剧夏季女系 最近拍的古装电视剧 golf 电视剧 宋朝电视剧有哪些 电视剧夏至未至下载 一土豆迎春花电视剧全集 最近犯罪电视剧有哪些 怀孕被打的电视剧 电视剧生死钟声第一集 电视剧夏至未至下载 电视剧夏季女系 电视剧生死钟声第一集 很老很老电视剧 新上映的电视剧古装电视剧叫什么 八两金演过什么电视剧 中国动画片大全电视剧大全下载到手机 顺治和董小宛的电视剧 很老很老电视剧 八两金演过什么电视剧 电视剧娘妻19 怀孕被打的电视剧 宋朝电视剧有哪些 tfboys电视剧超少年密码 心里的声音电视剧迅雷下载 电视剧枪花插曲 3个男变女的电视剧 一土豆迎春花电视剧全集 golf 电视剧 你好乔安30电视剧 tfboys电视剧超少年密码 怀孕被打的电视剧 四女奇缘电视剧优酷 亚星官网 亚星游戏官网 亚星游戏官网 亚星官网 亚星官网 失眠78小时 巅峰守护神 每晚,一个诡故事 我当风神那些事 白日暗流 亚星游戏官网 万利官网 欧博游戏官网 万利游戏官网 快连下载 四女奇缘电视剧优酷 早期内地破案电视剧有哪些 最近拍的古装电视剧 古装经典电视剧有哪些 怀孕被打的电视剧 你好乔安30电视剧 八两金演过什么电视剧 电视剧生死钟声第一集 最近犯罪电视剧有哪些 最近犯罪电视剧有哪些 怀孕被打的电视剧 叶静的电视剧 电视剧反恐特战队猎影在线观看 宋朝电视剧有哪些 电视剧枪花插曲 golf 电视剧 珠江台电视剧 3个男变女的电视剧 中国动画片大全电视剧大全下载到手机 心里的声音电视剧迅雷下载 云娘传电视剧集 golf 电视剧 电视剧生死钟声第一集 四女奇缘电视剧优酷 golf 电视剧 最近拍的古装电视剧 顺治和董小宛的电视剧 怀孕被打的电视剧 电视剧夏至未至下载 电视剧生死钟声第一集