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
手机照片改数据软件有没有诗歌的软件不要钱的猫咪软件下载飞讯邮件群发软件二手手机怎么下载软件手机照片改数据软件软件V不要钱的猫咪软件下载应用汇苹果官网下载软件什么软件可以土豪软件cc手机照片改数据软件安全二维码软件下载软件cc不要钱的猫咪软件下载什么软件可以土豪什么软件查手机余额epson l383扫描仪软件epson l383扫描仪软件用什么软件炫富电工实物软件office仓库管理免费软件微信扫描二维码实名软件下载现在什么软件免费下载音乐二手手机怎么下载软件记每日流水那个软件好飞讯邮件群发软件带扫码的软件用什么软件炫富安全二维码软件下载一名少年天赋异禀,因被手足残害险些命丧他手,不曾想因祸得福在机缘巧合之下寻得仙界神兵。当绝世神兵再现,引仙魔觊觎之时,他又将迎来一场怎样的命运呢?一个被予为天才的少年 一段被命运安排的人生 一场横跨万年的阴谋主角楚墨,婚礼时,被兄弟当场绿了,因气不过,直接冲出婚礼现场,可突然,一辆小车冲来,死了……地府算什么东西,你凭什么资格,赏善罚恶? 地府算什么东西?现在我就来告诉你! 你们洗不了的冤,由我地府来洗, 你们办不了的人,由我地府来办; 你们担不了的因果,由我地府来担。 一句话,是是非非地,明明白白天! 赏善罚恶,大道特许。这就是地府,够不够清楚?北京城,这个古老的城市。一直藏着些许见不得人的秘密,也许都市的灯光驱散了一些些阴影。但阴影依旧存在,它们不会消失 ,它们只是躲了起来。但总有人会提着灯,照亮无尽的黑暗。一场梦幻之旅,开启一段崭新人生。 宋阳变顾明,小太监变大赘婿。 究竟是道德的沦丧还是人性的泯灭? 究竟是天道轮回还是老天的玩笑? 欢迎跟随脚步,一起来到《穿越来鉴宝》的世界!林泽穿越到一个全民御兽的时代。 临近高考,他手上却只有一头被称为观赏型宠兽的小雪球。 “小雪球?也就看着养眼,没什么用处啊。” “不能进化的宠兽有什么用?” “潜力太低了,这辈子都不可能突破一阶。” “想考上御兽学院?不可能。” 质疑、讥讽与奚落纷沓而至。 林泽面色平静的看了眼宠兽面板 “隐藏进化路线!” “女皇路线:潜力无限的进化方式,最高可进化至王级。” 小雪球、冰晶魂、雪女、霜蓝少女、极冰王女......冰雪女皇! ...... 众人:“什么?小雪球还有进化形态?” “卧槽,你的宠兽怎么都是从未见过的品种!?还这么厉害!?”十年前,魔教大开杀戒、血洗武林。中原各路侠客、武者共同御敌,终于将其逐出关内,十年后,魔教重新入关,欲想再度统治中原武林,叶无风等人为保一方安危,浴血奋战……普通大学毕业生,没人脉,没势力,通过自己的努力,成为国内工控行业的先行者。意外穿越大秦,成为八公子嬴子夜,觉醒神级阅读系统,只要读书就变强!只要读书就能获得无限奖励,只要读书便可入圣! 为此,嬴子夜终日闭关读书,兢兢业业,不招灾,不惹祸。 终有一日! 始皇重危,意欲东巡求长生。 墨家蠢蠢欲动。 六国余孽准备造反。 赵高意欲篡改遗诏。 …… 嬴子夜知道,这时候不能继续藏了!再藏大秦不复、自己也将被胡亥杀死! “扮猪吃虎十余年,今日本公子不藏了!” “今日,本公子以读书入圣!一剑斩天!” “传令,三千大雪龙骑军出动!” “传令,铁浮屠出动!” “……”
原子:理与感 重生我从实业做起 女帝泪崩:反派师尊被曝光 至尊镇万古 驭谋 人间地狱十几载 大巫教主 黎明笼罩 触不可及的玫瑰 江湖,如梦楼 最强之修炼之路 诡异密匙 战龙墟 特种兵之恋 白虎堂二三事 富士山喷发后的高武世界 超能力者的故事 天墓冢 一道仙缘 人间觉醒 dws软件 什么软件可以土豪 什么软件查手机余额 epson l383扫描仪软件 dws软件 legend软件怎么制作 iphone微信无法定位软件下载 照片误删恢复电脑软件 记每日流水那个软件好 安全二维码软件下载 微信扫描二维码实名软件下载 微信扫描二维码实名软件下载 现在什么软件免费下载音乐 什么软件可以土豪 关于找车的软件 二手手机怎么下载软件 同什么软件能测手机内存 记每日流水那个软件好 有没有诗歌的软件 手机照片改数据软件 哪个软件可以把眼睛 不要钱的猫咪软件下载 有没有诗歌的软件 office仓库管理免费软件 照片误删恢复电脑软件 现在什么软件免费下载音乐 记每日流水那个软件好 有没有诗歌的软件 电工实物软件 记每日流水那个软件好 epson l383扫描仪软件 哪个软件可以把眼睛 飞讯邮件群发软件 手机照片改数据软件 现在什么软件免费下载音乐 二手手机怎么下载软件 兰灯软件ios iphone微信无法定位软件下载 现在什么软件免费下载音乐 兰灯软件ios 二手手机怎么下载软件 电脑朗读文件中文字的软件 用什么软件炫富 同什么软件能测手机内存 软件cc 哪个软件可以把眼睛 微信扫描二维码实名软件下载 二手手机怎么下载软件 室内装修软件免费 软件V 亚星游戏官网 亚星官网 亚星官网 亚星游戏官网 亚星官网 修个长生大道 重塑快乐时代 闵荒 仙罹 传说中的五仙竟然真的存在 亚星管理平台 澳门葡京官网 葡京官网 亚星管理平台 万利官网 epson l383扫描仪软件 照片误删恢复电脑软件 有没有诗歌的软件 室内装修软件免费 iphone微信无法定位软件下载 记每日流水那个软件好 泼辣修图软件破解 用什么软件炫富 电工实物软件 office仓库管理免费软件 epson l383扫描仪软件 手机照片改数据软件 不要钱的猫咪软件下载 现在什么软件免费下载音乐 用什么软件炫富 legend软件怎么制作 二手手机怎么下载软件 什么软件可以土豪 电工实物软件 现在什么软件免费下载音乐 哪个软件可以把眼睛 dws软件 安全二维码软件下载 用什么软件炫富 应用汇苹果官网下载软件 epson l383扫描仪软件 epson l383扫描仪软件 有没有诗歌的软件 dws软件 微信扫描二维码实名软件下载