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
雨林木风分盘软件生产经营软件用什么软件打水印比较好进销存软件教学竖曲线计算软件怎么用雨林木风分盘软件自己制作链接解码软件用什么软件打水印比较好破解版hd 软件一键照片初修软件美图秀秀制作多图闪图软件下载雨林木风分盘软件电子书创建的软件函数最新软件用什么软件打水印比较好一键照片初修软件拼多多上传软件航天信息税务申报软件航天信息税务申报软件office免费软件哪个好用图片倾斜自动校正软件航天信息税务申报软件破解版hd 软件网络爬取软件竖曲线计算软件怎么用平安好车主软件好不好用进销存软件教学流程软件 xsdyy电脑屏幕录制软件是什么软件下载电子书创建的软件林啸意外穿越特种兵的世界,随身带着最强国术系统。 每提升一个等级,不但身体会得到强化,还能获得新的国术,成为自己的天赋神通,既分高低,也定生死。 暗器精通:拥有此技能,你可以熟知每一件事物的属性,能将任何一种物品当作杀人的利器,杀人是一种技术,不滞于物,请谨慎使用此技能。 何晨光:“你从娘胎就可以练功吗?” 雷战:“牙签也能杀人,老子服了!” 安然:“啸哥,你确定你的女友是大明星?不是特种兵?” 范天雷:“狼牙的未来就交给你了,老子提前退休。乾坤八卦,阴阳五行,魑魅魍魉,死尸僵尸,一切尽在三界当中。 23世纪,人类社会发展到了新的高度,虚拟网游展现出蓬勃发展的局面,一部神话级网游《战国策》的问世,更是开辟了新纪元……神网那些事:从我的世界梦想之城起源,到成为第一超时空,无敌存在的完整故事,淋漓尽致的展现了最强体系的神网的诞生和特性。 干净清爽的第一人称爽文。 一小段番外: 那个光头男子看着眼前蓝光闪烁的盾法阵,第一次,他的拳头被拦住,无法前进分毫。我带着一丝轻蔑的笑:“你在你的宇宙中确实很强,但终究无法直接突破法则的束缚。”回答我的,是一个几乎能毁天灭地的拳头。同时,周围的空间,法则不稳定了起来。我皱起眉头,我可不想把这里搞的一团糟,AI法则混淆仪自动运转起来,开始修补破损的法则。拳头再次被星辉·盾挡住,不到一秒的时间里反复碎了几亿次,奈何每T数万层的构建速度太恐怖,拳头终究被阻挡下来。那男人见状,停了下来“无敌一定很寂寞吧。唉!”。我愣了几秒,当然是故意的,也叹息一声:“是啊。不过,我来可不是打架的。”看这他疑惑的表情,我嘿嘿一笑“愿意到我这里干活吗,最先进的建设岗位,收入大概你那一个月你那的九百亿。”东汉末年分三国, 男子意外重生,发现自己变成了女的, 为了方便行事,只好女扮男装, 冒用亡夫刘备之名! 为何刘备动不动就哭哭啼啼的呢? 因为女人是水做的! ...... 带着未来记忆的他,能否改变历史?这天下又将会落入谁的手中?女娲创世之后身陨天地,临走之际将当初补天用的五彩神石交付于凤凰族的族长慕九云掌管,之后便由凤凰一族统领神界。神界由凤凰、青龙,玄狐三族组成,分别掌管海界、地界、天界。各自掌管三地。三族的族长关系一直很好,当年一起在女娲娘娘座下惩恶扬善。但因玄狐族长灵霄的贪婪设计,在其妹妹灵若烟与慕九云大婚之际将慕九云杀害。神界改天换地,灵若烟将神灵寄托五彩石,而慕九云却身陨忘川,之后因缘际会,二人重新转世。千年前的误会,在二人重新历经万难之后解开。但由于灵霄堕魔被闵天侵蚀,危害天下,两个人不得不在次分离。兄弟几人修炼保护妹妹(姐姐)的小说 作者第一次写小说有不好的请谅解,也请大家多提提意见如果我不曾见过阳光,也许我会相信黑暗,但是再明亮的阳光也会有照不到的黑暗。上一秒还在午休的我 下一秒我睁开眼睛发现一切都变得陌生 我新买没有一个星期的空调呢,没有你我该怎么活 不对,现在我应该在梦里。 可是为什么被打会这么疼 够了,住手。想知道是不是做梦你不会打自己呀 我一脸无语看着刚认识不久的网红小姐姐当人类缩小,无数的物理定律被颠覆,科学信仰被摧毁,数万年历史的人类文明突然脆弱得不堪一击,几乎退回到农耕时代,近一半的人在这天死去,微缩纪元的来临,是人类历史上最恐怖也是最升华的一天……
仙人世界 起灵之末日 废土之上 拾少年 灵气剑师 完美特警 制霸武林 重生之我不会在负你 大秦:这捕快能处,有事他真上! 全民穿越:开局暴揍荒天帝 三尺剑断天涯 魔书莫邪 我在阳间当阴使 暗夜中回望花海的少年 热血警察 主播转生异世界君临王城 带着各种修改器穿越 五域文明 我的奥特曼友女 末日重生倒计时 变萌的软件是. 数学试卷的电子档是用什么软件 拼多多上传软件 航天信息税务申报软件 变萌的软件是. 室内场景用什么软件下载 吾爱破解如何修改软件内容 固态硬盘4k工具软件 平安好车主软件好不好用 电子书创建的软件 破解版hd 软件 物资的管理软件 网络爬取软件 一键照片初修软件 狼人杀人气协议软件 竖曲线计算软件怎么用 吾爱破解如何修改软件内容 平安好车主软件好不好用 图片倾斜自动校正软件 雨林木风分盘软件 数学试卷的电子档是用什么软件 用什么软件打水印比较好 生产经营软件 函数最新软件 一键照片初修软件 网络爬取软件 平安好车主软件好不好用 生产经营软件 图片倾斜自动校正软件 平安好车主软件好不好用 竖曲线计算软件怎么用 数学试卷的电子档是用什么软件 进销存软件教学 雨林木风分盘软件 流程软件 xsd 竖曲线计算软件怎么用 电脑输入软件密码 查询 吾爱破解如何修改软件内容 网络爬取软件 电脑输入软件密码 查询 竖曲线计算软件怎么用 关于酒店的软件 office免费软件哪个好用 物资的管理软件 函数最新软件 数学试卷的电子档是用什么软件 破解版hd 软件 进销存软件教学 yy电脑屏幕录制软件是什么软件下载 自己制作链接解码软件 亚星游戏官网 亚星官网 亚星官网 亚星游戏官网 亚星官网 第一改匪帮 我在人世间混日子的那些年 全民AR竞技 伏魔之天尊传奇 繁花飞溅正当空 欧博游戏官网 百家乐官网 亚星管理平台 欧博游戏官网 亚星管理平台 狼人杀人气协议软件 一键照片初修软件 拼多多上传软件 yy电脑屏幕录制软件是什么软件下载 关于酒店的软件 电脑输入软件密码 查询 物资的管理软件 数学试卷的电子档是用什么软件 室内场景用什么软件下载 室内场景用什么软件下载 关于酒店的软件 关于酒店的软件 美图秀秀制作多图闪图软件下载 吾爱破解如何修改软件内容 网络点歌系统软件 平安好车主软件好不好用 图片倾斜自动校正软件 用什么软件打水印比较好 自己制作链接解码软件 网络爬取软件 进销存软件教学 平安好车主软件好不好用 数学试卷的电子档是用什么软件 狼人杀人气协议软件 平安好车主软件好不好用 拼多多上传软件 固态硬盘4k工具软件 关于酒店的软件 函数最新软件 数学试卷的电子档是用什么软件