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
猴年邮票邮票互动网大龙邮票欧美群迅雷下载第三轮生肖邮票猴年邮票邮票交易所民居邮票香港回归纪念邮票邮票收藏当午夜的钟声响起,诡秘撕开黑暗的面纱,夜行人间。 沉寂林中尸体搭建的小屋,挂满无头死尸的参天巨树,凭空塌陷的万米巨坑中传来谁的吟唱? 尸骸朝圣,百鬼夜行 ,凝固的海…… 异境层出不穷。 羊头人,豚蛇,祸猪,俎肢异形,黄昏巨人,亵渎暴君坎加厄…… 一个个诡异生物于罪恶晦暗中诞生,屠戮人间。 少年王也发现他有一个可以进行角色扮演的黑暗世界,在这里,他可以挑选这个世界存在的……怪人进行角色扮演,获得他们的能力。 火人杰克,地鸣戈加顿,黑暗哥特加尔,面具柯暮以及那黑夜之上的死神耶格利特…… 这是一个人与邪异共存的世界。 罪恶祸乱人间,牧户一战中让王也知道了自己需要承担的责任。 他的心态由此发生转变。 他将握着黑夜世界,化为暗暮中的野兽,以最凶残的姿态撕裂罪恶!规培医生王磊应聘失败,却获得透视脏器能力,更有神级手术技巧。 幼儿误诊,即将死亡,王磊:我看到了,支气管断裂,马上手术。 主刀医生误伤主动脉,鲜血喷到天花板,王磊轻松搞定。主刀:幸亏王磊在。 农庄爆发奇怪病症,全市医生晕头转向,大佬:快去请王磊! 小小的乡卫生院逐渐成为世界医学中心,无数患者和名医云集于此,周边房价超过市中心。 这一切,都是因为一个人。 在龙族的另一个平行世界,事情有着很大的变化........这是一场关于魔法,名为永恒的圣战! 那夜,恶魔如天使般降临,身为魔王却为少女规划出一条救世之路。 魔法少女不一定身穿粉色洛丽塔套裙、手持心形魔杖,她也可能身披黑色羽甲、手握战矛与敌人贴脸输出。 你问魔法? 噢!她用来防御。改革开放至今的四十年间,注定了中国历史的再次波澜壮阔。 梁海星,一位农村大学生,进入单位后,因发现上司不该发现的龌龊之事,后又被人击伤,险些丧命,在即将实现副厅长的梦想时,却突然与曾经的“恩人”彻底撕裂,于是,毅然选择了辞职。虽被漂亮的同事、下级苦苦追求,但对妻子的爱始终不渝。高燕,一位理想的机关年轻漂亮女干部,因爱生恨,万念俱灰,收养梁海星儿子后去了国外。正直的周思国,由市委书记成长为副省长,时常陷入家庭与人情的纠缠,但不失高级领导的高风亮节。黄正刚一位正直的老领导,致力培养梁海星,但残酷现实也时常使其感到无奈。刘大可一位基层成长起来的厅长,左右逢源,屈伸有度,但却极为贪婪,最终机关算尽。吴强,从乡镇干部一步步努力成长为市委副书记,然而,追求的变异使其整日惶恐不安,初恋女友给予的不仅仅是温柔,安排好妻子的后事,毅然走向了冰冷的湖水。漂亮的陆美霜对赵良既爱又恨,超出了常人的理解……。苏牧穿越来到一个武道世界, 在生死存亡之际, 蒙系统“招工”,进行模拟历练, 在现实任务奖励和模拟反馈的加成下, 迅速崛起,成为名副其实的最强打工人。 搞笑阿本,冷酷苏牧,智障系统, 三方命运交织,究竟会擦出何种火花。无数的故事,编织成了这个世界。用,我的“晶莹剔透”······去,映射你的“色彩斑斓”······使,你的天空更加的“绚丽多彩”······被,净化的“一尘不染”······(阿贝尔.水灵)【奇迹】第一高手,因战队成绩不佳,惨遭俱乐部逼宫扫地出门。 被扫地出门的他,来到一家游戏工作室担任打金人。 【奇迹】第一高手岂是普通的打金人?上到各大公会,下到小鱼小虾被他收拾的服服帖帖。 有人问,【奇迹】第一高手就这么沦为打金人,他真的心甘情愿吗? 他的回答是,这一次我要为自己战斗,也要在这里强势回归。 一身绝世传承,妙手回春! 可悬壶济世却受人白眼,惨遭诬陷? 但,是龙,当遨游九天! 一朝出水,必踏血而归! 每天稳定两更,点点收藏不迷路!
第三轮生肖邮票 生肖邮票 邮票市场 邮票行情 邮票 民居邮票 邮票网 邮票互动网 邮票互动网 邮票市场 中国邮票 邮票行情 邮票收藏价格表 邮票交易所 邮票市场 欧美群迅雷下载 民居邮票 生肖邮票 世界上第一枚邮票 邮票吧 世界上第一枚邮票 猴年邮票 女幽灵 百度网盘下载 迅雷下载 文革邮票 南京文交所钱币邮票交易中心 女幽灵 百度网盘下载 迅雷下载 邮票行情 中国邮票价格表 纪念邮票 邮票 龙邮票 欧美群迅雷下载 世界上第一枚邮票 邮票行情 上海邮票网 十二生肖邮票 邮票 龙邮票 香港回归纪念邮票 邮票收藏价格表 末世之尸王九州无敌战神黑鸦之吻睫毛的闭合黑夜少年天元真仙八十锤一念道沉桃源小天师至尊成魔平平淡淡的我重生啦苏联之北侠道山河永别了,银河!末日诛仙去外面看一看燕武纪鬼兵异传焦土幸存者洛洛历险记:无敌超速风亚星官网 亚星游戏官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星游戏官网 亚星游戏官网 亚星游戏官网 亚星官网 亚星官网 亚星官网 亚星游戏官网 【薇-電132-②⑧⑧⑧-8433】皇冠登3出租 【薇-電1322 8888 433】皇冠登3出租 皇冠登3出租 薇-電 132-②⑧⑧⑧-8433 【薇-電1322 8888 433】皇冠登3出租 【薇-電132-②⑧⑧⑧-8433】皇冠登3出租 快链加速器 - 上海曲德曲网络科技有限公司 快连VPN - 上海曲德曲网络科技有限公司 Lets快连 - 上海曲德曲网络科技有限公司 快连VPN - 上海曲德曲网络科技有限公司 快链加速器 - 上海曲德曲网络科技有限公司 快连官网 - 上海曲德曲网络科技有限公司 快链加速器 - 上海曲德曲网络科技有限公司 快连VPN - 上海曲德曲网络科技有限公司 快连VPN - 上海曲德曲网络科技有限公司 快链下载 - 上海曲德曲网络科技有限公司