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
逗拍视频压缩软件做京东需要下载什么软件做照片相框有哪些软件下载学统计用什么软件下载可以添加文字的拍照软件下载逗拍视频压缩软件会声会影10清除软件下载做照片相框有哪些软件下载品茗脚手架软件免费试用版期货电脑自动软件免费下载word中电子签章的软件做照片相框有哪些软件下载现在苹果手机微信自动抢红包软件哪个好用吗word中电子签章的软件音频编辑软件在线剪音乐期货电脑自动软件免费下载移动app上给别人充流量的软件下载山东航天信息税控开票软件山东航天信息税控开票软件pc版数独软件创盈门窗算料软件破解版山东航天信息税控开票软件品茗脚手架软件免费试用版万能烧录器软件可以添加文字的拍照软件下载移动app上给别人充流量的软件是什么图片加文字编辑软件有哪些万能烧录器软件pc版数独软件现在苹果手机微信自动抢红包软件哪个好用吗当科技撞上魔法的狂潮,以太之光闪耀,新世界降临。 “所谓火种,乃是为人类的生存繁衍做出巨大贡献甚至能够改变世界的元素。 我曾想,第一次火种便是人类还是猴子的时候学会了使用火焰,驱散黑暗和寒冷,抵御猛兽,使人类在这片土地得以繁衍生息。 第二次,人类发现了火焰之中蕴含的强大力量,制造出了机械,自此也彻底站在了这颗星球的物种之巅,而随之而来的便是无休止地战争。 第三次,人类发现了铀以及一大批的放射性物质,核武器的出现更是使得生命如同草芥! 而如今,第四火种出现,超脱于构成世界的四元素,存在于万物之中,以太,它将传说中的一切展现在你我的面前,拥有无限的可能!”懦弱、胆小、霸凌是我经常遇见的,为了改变我努力习武,日复一日年复一年,坚持与毅力共存知行合一。做一件事要认认真真的去完成,你要做到一往无前,不畏艰险打破一切困难! 且看怂包少年偶得系统开启武学之路拳震八方,成就无双威名! 古玩就是贩卖历史。 这话是我爸对我说的,那个时候我只有7岁,懵懵懂懂,完全不明白是什么意思。 直到后来,我才知道古玩贩卖的不只是历史…… 还有故事!神说:太初有道,道即是神! 魔曰:太初有道,魔于道先! 有魔,先于道而生!这不仅仅是某人的自夸,更牵扯到他证道的隐秘。 九州之变,魔星降世,灵石下凡,洪荒秘闻…… 道之所存,魔之所在!且看天魔周游各方世界,追逐魔之本源,成就无上道果! 未婚妻的背叛、父亲的离奇死亡、母亲的神秘失踪! 背负着沉重包袱的沈夜白,毅然走向那十死九生的屠邪之路。 在这弱肉强食,渐渐失去秩序的修炼世界,他闯荡坠天神域、脚踏万千邪族、在天地战场纵横杀戮…… 当他驻足停歇、放眼天地,才发现自己早已站在了这个世界的绝顶之巅!孙浩立志于实现其明星的梦想,并一直努力着 末世,丧尸,异能,人性,生物兵器 长生不是福赐,而是诅咒。 生离死别,千世孤独。 结束,也是开始…… 再回一次,你依旧无能为力……每个人心中都有一个自己的江湖,江湖故事。 凌云被师傅赶下山,一人独闯江湖。 江湖纷争,人心难测,我自清醒。 在整个大陆上,除了一些传闻,还有一名非常神秘且强大的战士,是这片大陆最强悍的战士之一,他死后由他而已继续保护传送阵法盘古开天,女娲造人,后羿射日,嫦娥奔月,四大天灵,十大神兽,山海经神话本源,天上天下,唯我独尊
宗门里连我都是卧底 从地球回来后我逐渐无敌 什么?我居然没有系统? 江湖有你才有传奇 双魂同身:是个穿越者 命运之矛:宗师 玄幻:断人财路,我是专业的 生化之无人生还 这个捕快太行了 英雄的赞歌 Re:我与妹妹们的冒险关 第十魔神 剑战诸天 猫年狗月燕纷飞 七军战天 第三人称观 唯我超然 异変 御临河传奇 恶魔契约引导的新生活 smc电缸选型软件中文版 福星pdf压缩软件 移动app上给别人充流量的软件下载 可以添加文字的拍照软件下载 smc电缸选型软件中文版 初三物理自学软件 移动app上给别人充流量的软件下载 移动app怎样给别人充流量的软件下载 移动app上给别人充流量的软件是什么 在线共享的视频软件 品茗脚手架软件免费试用版 弘业期货模拟软件 解压缩软件彩色 福星pdf压缩软件 逗拍视频压缩软件 可以添加文字的拍照软件下载 有完整交易系统的股票软件 移动app上给别人充流量的软件是什么 管网阻力计算软件 做照片相框有哪些软件下载 福星pdf压缩软件 音频编辑软件在线剪音乐 做京东需要下载什么软件 word中电子签章的软件 期货电脑自动软件免费下载 解压缩软件彩色 移动app上给别人充流量的软件是什么 做京东需要下载什么软件 管网阻力计算软件 移动app上给别人充流量的软件是什么 可以添加文字的拍照软件下载 qq空间的照片删了怎么恢复软件 学统计用什么软件下载 逗拍视频压缩软件 万能烧录器软件 可以添加文字的拍照软件下载 学统计用什么软件下载 移动app上给别人充流量的软件下载 解压缩软件彩色 音频编辑软件在线剪音乐 图片加文字编辑软件有哪些 在线共享的视频软件 ppt文件压缩下载软件 有完整交易系统的股票软件 word中电子签章的软件 福星pdf压缩软件 弘业期货模拟软件 图片加文字编辑软件有哪些 解压缩软件彩色 会声会影10清除软件下载 亚星游戏官网 亚星官网 亚星官网 亚星官网 亚星官网 用双手挖矿 成就无上仙位 重生:人在王朝,开局种田致富 九子神兵 林深不见鲸落 网游之我能重铸万物 万利官网 皇冠登3出租 百家乐官网 万利官网 欧博官网 qq空间的照片删了怎么恢复软件 福星pdf压缩软件 图片加文字编辑软件有哪些 山东航天信息税控开票软件 音频编辑软件在线剪音乐 在线共享的视频软件 有完整交易系统的股票软件 pc版数独软件 图片加文字编辑软件有哪些 smc电缸选型软件中文版 逗拍视频压缩软件 创盈门窗算料软件破解版 可以添加文字的拍照软件下载 解压缩软件彩色 现在苹果手机微信自动抢红包软件哪个好用吗 现在苹果手机微信自动抢红包软件哪个好用吗 ppt文件压缩下载软件 逗拍视频压缩软件 初三物理自学软件 可以添加文字的拍照软件下载 做照片相框有哪些软件下载 移动app怎样给别人充流量的软件下载 qq空间的照片删了怎么恢复软件 解压缩软件彩色 学统计用什么软件下载 会声会影10清除软件下载 ppt文件压缩下载软件 移动app怎样给别人充流量的软件下载 解压缩软件彩色 万能烧录器软件