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
专门用于走步 的软件下载桥架软件专门用于走步 的软件免费软件ipadbkf恢复软件表格免费什么软件好用什么软件可以找笔友专门用于走步 的软件ipad软件怎么装医院病历本生成器软件解压软件下载32位专门用于走步 的软件蓝宝石tri xx超频软件电话录音的软件有哪些手机模拟吉他的软件医院病历本生成器软件bmi记录软件安卓手机手环连接软件安卓手机手环连接软件西装工作照软件手机自学吉他软件中文安卓手机手环连接软件ipad软件怎么装有什么把视频压缩小的软件bkf恢复软件什么软件可以在pdf上搜索免费软件ipad有什么把视频压缩小的软件西装工作照软件蓝宝石tri xx超频软件他本是龙国最年轻的国医圣手,却因为一次意外,重生回到了四年前。 上一世,他误入歧途,痛失妻女,尝尽了人间疾苦! 这一世,面对妻女的失而复得,他势要弥补当年的遗憾,快意恩仇。 且看一代鬼医传人,如何凭借一手鬼神难辨的惊天医术,守护心中挚爱,成为最强都市奶爸!一个持续万余年的计划 只为对抗 第一圣人毁灭世界的阴谋 却不想其他世界的误入 让整个行动造成了无法挽回的偏差 是绝地重生? 还是陷入绝望…… 天外天,这个叶玄梦寐以求到达的地方,而叶玄并不知道的是,在这背后还有一个更加庞大的世界,一个无法理解的世界!这世上最好的事,是不要出生;次好的,是快快去死。人性本恶。尘寰外,碧海中,桃花之间桃花岛。秋风起,海波兴,几度潮来听玉箫。且看东邪黄药师传人,如何纵横都市。满天神佛朝我跪拜,天下美女唯我独揽!已完本,放心阅读。我本是一个默默无闻的高中生,没有帅气的外貌,没有显赫的家庭,每天的生活也平平淡淡,只有学习陪伴着我,直到高二时我们班来了一个转校生……建筑集团老总许勇,穿回到1986怂人狗娃的身上。 前后两世记忆一融合,他瞬间变得强大。 拳打村霸,棒扫混混英雄救村花。 夜总会遇伯乐,他的人生从此开挂。 组建乡村建筑队、办醋厂、种果树。 直到集团公司上市。 用超前三十多年的人生经验赚这个时代的钱,岂不是很容易? 看《超级农民工》为自己补办一场错过的人生盛宴。夏炙一觉醒来发现自己穿越到了平行世界。 这里的人竟然将游戏定位第九艺术,玩家为了玩到一款好玩的游戏出多少钱买都愿意,游戏设计师成为最热门的行业。 夏炙狂喜,因为上个世界的无数经典游戏,这里的人竟然都没玩过。 于是一名超级天才游戏设计师诞生了。 美女导师:“我不配做陈欢的导师,他的‘马里奥’足够让我学一辈子。” 游戏测评员:“‘塞尔达’是足以改变世界的游戏,陈欢领先了业界一千年。” 攻略大佬:“扶我起来,我要和苇名一心拼刀,别拦我我还能送!” 全球玩家:“夏炙快点出新游戏,多少钱我们都买。” 其他游戏设计师:“年度游戏还选什么,直接给夏炙算了。” 夏炙本人:“别急别急,在做了(新建文件夹)。”太古如梦的神魔故事,演绎正邪的七大剑派,侠 骨柔情的快意江湖,胜那天上宫阙的九灵宫,最神 秘不过的冰雪国。 漫漫长长的寻凶之路,一剑一酒一宿醉
诸神听命 我不是花心盗贼 穿越风云之谍海岁月 蓝蝶恋 看我如何灭你 剑道之太上 我在高武世界当倒爷 做一条清水的河 将火余年 潜生 诡异世界,我的呱呱军团 我的穿越门 云山诀 火箭队干部晋升日记 网游:神级宠物助我升级 墨云之争 落尽天因 我是大主祭 ENDLESS FANTASY 大贼传 钱宝软件聊天没有信息 微信体现软件 bmi记录软件 bkf恢复软件 钱宝软件聊天没有信息 微信电脑版哪里下载软件 公共图书馆软件 免费智能选股手机软件 什么软件可以在pdf上搜索 蓝宝石tri xx超频软件 ipad软件怎么装 软件查看2017qq聊天记录 vcd文件如何刻录软件 微信体现软件 表格免费什么软件好用 bkf恢复软件 公共图书馆软件 什么软件可以在pdf上搜索 手机自学吉他软件中文 专门用于走步 的软件 微信体现软件 手机模拟吉他的软件 下载桥架软件 电话录音的软件有哪些 医院病历本生成器软件 vcd文件如何刻录软件 什么软件可以在pdf上搜索 下载桥架软件 手机自学吉他软件中文 什么软件可以在pdf上搜索 bkf恢复软件 微信体现软件 凯瑞图书软件管理软件 表格免费什么软件好用 有什么把视频压缩小的软件 bkf恢复软件 凯瑞图书软件管理软件 bmi记录软件 vcd文件如何刻录软件 手机模拟吉他的软件 免费软件ipad 苹果wps软件 观看电影软件 软件查看2017qq聊天记录 电话录音的软件有哪些 微信体现软件 软件查看2017qq聊天记录 免费软件ipad vcd文件如何刻录软件 什么软件可以找笔友 亚星官网 亚星游戏官网 亚星官网 亚星官网 亚星游戏官网 雾山迷蒙彩霞飞 我!酒剑仙,蜀山签到三百年 灵气复苏:修真临至 骷髅神皇 诡循环:每天被邪祟杀一次 皇冠登3出租 亚星管理平台 澳门葡京游戏官网 皇冠登3出租 亚星官网 winrar压缩软件去广告 钱宝软件聊天没有信息 专门用于走步 的软件 什么软件可以在pdf上搜索 手机自学吉他软件中文 有什么把视频压缩小的软件 蓝宝石tri xx超频软件 什么软件可以找笔友 给照片p笑脸的软件 西装工作照软件 微信电脑版哪里下载软件 观看电影软件 电话录音的软件有哪些 微信体现软件 观看电影软件 手机自学吉他软件中文 解压软件下载32位 苹果wps软件 免费智能选股手机软件 免费软件ipad 专门用于走步 的软件 给照片p笑脸的软件 钱宝软件聊天没有信息 有什么把视频压缩小的软件 什么软件可以在pdf上搜索 公共图书馆软件 bkf恢复软件 微信体现软件 软件查看2017qq聊天记录 ipad软件怎么装