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
赤子》文本歌词 作词:于0202然 作曲:徐沛东 演唱:廖昌永如果再次奔向你歌词irc有一首歌里面歌词只有一句i miss you 没有歌词 只有节奏多么美歌词自立歌词赤子》文本歌词 作词:于0202然 作曲:徐沛东 演唱:廖昌永歌词你让我的有一首歌里面歌词只有一句i miss you 没有歌词 只有节奏杏仁歌词歌词难道天边海角爱不能歌词有一首歌里面歌词只有一句i miss you 没有歌词 只有节奏黄子韬的歌曲皇冠的歌词爱不能歌词今生相逢歌词歌词难道天边海角线歌词女生唱的歌节奏很轻快歌词有一句没有什么了不起没有什么女生唱的歌节奏很轻快歌词有一句没有什么了不起没有什么黄玫瑰的歌词是否歌词歌谱女生唱的歌节奏很轻快歌词有一句没有什么了不起没有什么杏仁歌词歌词有奥林匹克炊烟歌词万人迷歌词 小白炊烟歌词歌词有奥林匹克黄玫瑰的歌词黄子韬的歌曲皇冠的歌词在原本世界羽毛球无敌的少年,渴望一个像样的人,于是,他将面对一个以羽毛球为尊的世界天上仙人,染指人间久矣。 今我大秦既立,大秦国土之上,当无仙人立锥之地。 大秦诸位臣民,朕,先走一步了。 吾,大秦太子,以大秦之名,携人间之力,倒卷天上,从此,再无天上人间之分。有的人穿越了,但是没有完全穿越。 因为他的妹妹也跟他一起穿越了,并且两人共用一个系统,所以在地球统一的穿越通道中停留了好几年,终于等到了自己的妹妹。 兄妹俩穿越到三光大陆成为了应月宗的大长老和宗主。 “师尊,小师妹差点被渣男骗了!” 秦时关:“敢欺负我应月宗弟子,徒弟们上!给我围殴他!死了算罪有应得,没死算罪不至死!” “师尊,小师弟被退婚了!” 秦时关:“什么?传我指令,让圣城圣女给我小弟子当媳妇。” 秦时关:“我也不想护犊子啊,可是他们叫我师尊诶!”一个刚出校园的大学狗被社会毒打得回了老家,灰头土脸的他因意外重生到了修仙界。在这里,还有与他一起重生的冤种大黑狗。 “好汉饶命!你要揍请揍我的狗!” “你他喵的是真的狗啊!” 天要亡我,仙要灭我,我唯有一狗,可开天,弑仙...“咦,我的狗呢?” 他高傲,但是宅心仁厚。 他低调,但是万人敬仰。 他是天启皇帝的好朋友,亿万人的心中偶像。 他的宗旨是创建和谐新大明。 哪怕已经过去了很久很久,和平时代早已来临,他依然时常回想过去,回想起那座燃烧着的边境城市,那团火从那时便引燃了少年炽烈的心,如光,如炬,引领无数拥护者追随他的步伐,用铁与血推动了历史的车轮。没错!这就是进击的巨人同人!   林疯在末世被人杀死,谁知他竟意外重回末世,回到末世前,林疯发誓要守护上一世被自己抛弃的女友! 哪知找到女友后,林疯懵逼了,自己可爱多金的女友咋变了丧尸?   这一切,都让林疯措手不及。   不过好在,林疯有上一世的经验,他迅速成长为强者,保护自己的丧尸女友,顺带拯救世界。                                     一场封神大战,尘埃落定,埋藏过往! 那些前世情缘、封神旧恨,似乎随风而逝,万年后,一个冷血杀手,踏月而来,带领一众妖女诛仙斩神! 云海天涯两渺茫,何日功成名遂了,还乡! 醉笑陪公三万场! 不用诉离觞!本书为原创长篇小说,分为两部。分别是上篇《亿兆富翁的百日蜕变》,下篇《亿兆富翁的二潜舰队》。 描写的是男主角“乌鸟炎”由都市普通人意外成为《亿兆富豪》栏目的幸运观众,从而开启了一段新的人生。
洛阳剑行 与温韬同行 三国之汉末枭雄 寻天珠 乔乔的奇妙冒险:十字之魂 小飞侠李可可屠龙记 带着老滚的代码穿越异世界 玄幻:我真的不是绝世高手 跳下悬崖后,我开挂了! 生化危机之虐杀原型 类地行星468号 无限世界:请君入梦 我一人挑翻万族 重生之笔神 电竞之路:昂狮 蓑衣 破尽时空 沐雪情缘 都市之潜龙震天 怖城 有一首歌里面歌词只有一句i miss you 没有歌词 只有节奏 歌词 故乡的容颜 万人迷歌词 小白 黄子韬的歌曲皇冠的歌词 有一首歌里面歌词只有一句i miss you 没有歌词 只有节奏 多么美歌词 万人迷歌词 小白 杏仁歌词 今生相逢歌词 是否歌词歌谱 歌词有奥林匹克 歌词有奥林匹克 自立歌词 歌词 故乡的容颜 歌词 有香浓 黄子韬的歌曲皇冠的歌词 种太阳歌词及曲谱 今生相逢歌词 歌词里面含有"前面总有几多首歌 给轻轻的和"的歌名叫什么 先看歌词 歌词 故乡的容颜 歌词难道天边海角 歌词里面含有"前面总有几多首歌 给轻轻的和"的歌名叫什么 歌词你让我的 龙的传人原唱伴奏有歌词 自立歌词 今生相逢歌词 赤子》文本歌词 作词:于0202然 作曲:徐沛东 演唱:廖昌永 歌词里面含有"前面总有几多首歌 给轻轻的和"的歌名叫什么 今生相逢歌词 黄子韬的歌曲皇冠的歌词 歌词 有香浓 多么美歌词 赤子》文本歌词 作词:于0202然 作曲:徐沛东 演唱:廖昌永 歌词有奥林匹克 自立歌词 多么美歌词 线歌词 飞天歌词简谱 今生相逢歌词 炊烟歌词 缘分惹的祸歌词 冷漠 歌词里面含有"前面总有几多首歌 给轻轻的和"的歌名叫什么 歌词 故乡的容颜 爱不能歌词 先看歌词 龙的传人原唱伴奏有歌词 炊烟歌词 飞天歌词简谱 歌词你让我的 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 入道苍生 重生之我是大主播 现代修真视录 白契 地球之灵开局拯救亿万人 百度 百度 百度 百度 百度 先看歌词 爱不能歌词 是否歌词歌谱 歌词 有香浓 自在 歌词 杏仁歌词 缘分惹的祸歌词 冷漠 有一首歌里面歌词只有一句i miss you 没有歌词 只有节奏 不爱我歌词 有一首歌里面歌词只有一句i miss you 没有歌词 只有节奏 种太阳歌词及曲谱 今生相逢歌词 线歌词 自立歌词 歌词 故乡的容颜 种太阳歌词及曲谱 杏仁歌词 歌词 故乡的容颜 赤子》文本歌词 作词:于0202然 作曲:徐沛东 演唱:廖昌永 龙的传人原唱伴奏有歌词 shout完整歌词泽野弘之 歌词里面含有"前面总有几多首歌 给轻轻的和"的歌名叫什么 如果再次奔向你歌词irc 杏仁歌词 万人迷歌词 小白 自在 歌词 黄玫瑰的歌词 炊烟歌词 杏仁歌词 歌词你让我的 亚星官网 亚星官网 万利官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网