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
乾县72小时天气预报广西贺州钟山历史天气乾县天气 pm2.5黔西天气30天黔西县2月9日 天气情况乾县72小时天气预报湖南25日至29日的天气乾县天气 pm2.52015年武汉天气情况黔西天气预报查询一周天气预报毕节2017年9月份天气预报乾县72小时天气预报天气预报查询今天明天毕节2017年9月份天气预报乾县天气 pm2.5黔西天气预报查询一周天气预报天气预报视频的明天后天黔西县2月9日 天气情况黔西县2月9日 天气情况钟山县前一个月天气2016武汉十一月份天气毕节10月天气2015年武汉天气情况十月份上海天气情况陕西乾县历史天气荣成11月6日天气黔西天气30天山东威海11月天气预报一周钟山县前一个月天气合肥天气14天大千世界表面上处处风光,实则危机四伏,一场巨大浩劫降临,王级强者堪堪自保,亿万生灵涂炭,一代天骄横空出世,纵横世间,如青松般万古长青于世,亘古长存于野,看主宰之路,谁主沉浮!“你相信吗?从出生起,你的命运既已经注定。上天已经注定你是失败者,不但永远在那人之下,最终身死道消。 人生模拟器,可以改变你既定的命运,你值得拥有。” 跟随花果山猴王身后一起出海寻仙的六耳,身边不断响起这样的声音。 在海面上漂浮了很久,六耳猕猴看着天空当中不断压低的阴云怒吼,&amp;quot;我不相信命运!!!&amp;quot; 本书又名:《六耳猕猴的人生模拟器》、《妖猴哪里逃》我因为贪婪,把自己卷进了一个未知的领域。   随之拼命挣扎,但无济于事。   遇到了很多,也挣扎过很多。   明白了许多,也失去了很多。   我不知道当天再亮起来的时候,我还能再次睁开眼睛。   或者是永远的沉睡。   来自星辰的启示, 人与神明相抗争。 超前进化的智慧, 痴迷幻梦不愿醒。 败军之将,梦途惊醒,逆天改命,铸就新(醒)程。 一朝穿越,杨轩竟被拉上学校舞台救场。 没想到自己却一曲成名了。 更让他没想到的是,这个世界的文娱发展滞后。 满足不了杨轩的精神世界。 那么,丰富文娱,只好靠我了!睁开双眼,傅休已经站在陌生又熟悉的地方。 “转移成功了。” 那么接下来,便是编程勇者改变故事的故事! (本书已定好全文,前期普通的龙傲天旅行,中期会触发心魔事件黑化,结局将会作为最终boss被勇者魔王还有联盟军杀死,要是有活着的读者反馈观感可能会改改走向(+_+)?) (另:作者一贯秉承,不求出彩的文笔,但求不降智的情节。所以一旦有大家觉得奇怪的地方,可以大大方方地指出)异世界重生 一穷二白, 苏醒后只有个关心自己的漂亮妹妹。在遥远的玄云大陆,一位被父母抛弃的孩子,被迫成为萧家的奴隶,而他为了活下去,在萧家的禁地偷学了萧家的秘法:鬼龙爪,他将要在这片大陆走出自己的天地………该篇文章刻画了一只平凡的毛毛虫,在遇到生活中令它困惑的事时的所见所闻以及内心的想法,全篇没有跌宕起伏的情节,和我们平凡的生活相似,却暗含哲理。 毕业于南疆理工学院地质系的蒙古族姑娘齐林终其一生破译了祖先留下的金牌上的秘密,找到了蒙古大军留下的东夏国的宝藏,同时也为国家找到了一个大型的有色金属矿藏。齐林男友,小提琴家杨文负气辞去歌舞团副团长职务下海,最终成为作家。武术家林飞的两个孙子,一个成为研究太阳能的军事科技专家,一个成为药物学专家。瞿永明因受贿下狱,他姑娘为了父亲留在南当,通过自己的努力,成功创办了香料公司。范宝忠、范宝德兄弟俩的子女,一个成为私募基金老板,一个成为冶金专家。副市长常伟因害怕组织追究跳楼自杀,朱丽丽因受贿罪坐牢死于狱中。他们俩的私生子,通过自己的奋斗,成了一名钢琴家。杨文的追求者李萍,也成为了著名的舞蹈家。她终身追求杨文,最终无缘,终究只做了好友。本书还描写了南当人民英勇抗日、抗美援朝的事迹。歌颂了南当人民建设自己的家园,努力打造锡文化,把南当建设成为世界锡都的事迹。本书共80万字。
玄幻:天下第一楼 御天剑仙 我的重生没有系统 奇幻:我继承了九州神明鼎 水浒续:我的爷爷是岳飞 符镇天下 我的手机有妖怪 造魔之路 莫名成神 千云落 龙踪 村里来了盗墓贼 魔法世界的修仙者 半步兵神 离婚后,我的身份被发现了 灵兮大陆 异界神说之圣职传奇 情书, 刀塔异界纵横 网游之万界 荣成11月6日天气 黔西天气预报查询一周天气预报 天气预报视频的明天后天 黔西县2月9日 天气情况 广西贺州钟山历史天气 山东威海11月天气预报一周 贵州省遵义市天气历史记录 杭州白天气温 山东济南天气穿衣 天气预报查询今天明天 牟定未来一周天气预报 牟定未来一周天气预报 十月份上海天气情况 黔西天气预报查询一周天气预报 乾县72小时天气预报 陕西乾县历史天气 佛罗里达天气预报15天查询 荣成11月6日天气 宁夏贺兰天气预报30天 乾县天气 pm2.5 毕节七星关一周天气预报 乾县天气 pm2.5 宁夏贺兰天气预报30天 毕节10月天气 西班牙塞尔维亚天气预报15天 中国陕西省乾县天气现况 荣成11月6日天气 宁夏贺兰天气预报30天 2016武汉十一月份天气 荣成11月6日天气 黔西县2月9日 天气情况 毕节七星关一周天气预报 黔西天气30天 乾县72小时天气预报 十月份上海天气情况 陕西乾县历史天气 黔西天气30天 贵州省遵义市天气历史记录 十月份上海天气情况 乾县天气预报5月16号 陕西乾县历史天气 杭州白天气温 钟山县前一个月天气 佛罗里达天气预报15天查询 毕节2017年9月份天气预报 毕节七星关一周天气预报 牟定未来一周天气预报 陕西乾县历史天气 中国陕西省乾县天气现况 湖南25日至29日的天气 亚星游戏官网 亚星官网 亚星官网 亚星官网 亚星官网 记忆中的光点 杀机汹涌 邪道圣人 魔就是身边 科技式修仙 万利官网 欧博官网 百家乐官网 万利官网 欧博官网 乾县72小时天气预报 钟山县前一个月天气 杭州白天气温 乾县30天气 乾县天气预报5月16号 西班牙塞尔维亚天气预报15天 黔西天气30天 乾县72小时天气预报 黔西县2月9日 天气情况 广西贺州钟山历史天气 贵州省遵义市天气历史记录 荣成11月6日天气 毕节2017年9月份天气预报 陕西乾县历史天气 毕节七星关一周天气预报 贵州省遵义市天气历史记录 西班牙塞尔维亚天气预报15天 毕节七星关一周天气预报 乾县30天气 黔西天气预报查询一周天气预报 天气预报查询今天明天 2016武汉十一月份天气 合肥天气14天 西班牙塞尔维亚天气预报15天 天气预报视频的明天后天 乾县天气预报5月16号 陕西乾县历史天气 黔西天气30天 牟定未来一周天气预报 湖南25日至29日的天气