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
凤凰书城软件下载金宝贝起名软件的注册码500万彩票网缩水软件下载有可以拍素描得拍照软件吗quick start软件凤凰书城软件下载听写汉语拼音软件下载500万彩票网缩水软件下载专业宝宝取名软件迅雷9官网苹果手机下载软件爱奇艺播放软件安装包500万彩票网缩水软件下载证件照调分辨率的软件爱奇艺播放软件安装包拍照三生三世十里桃花软件迅雷9官网苹果手机下载软件银河期货程序化交易软件下载原材料进出的软件quick start软件哪个拍照软件拍成可爱的小视频照片换服装换头软件原材料进出的软件专业宝宝取名软件上古卷轴录制软件dwg用那个转化格式软件下载开网店的记账软件dwg用那个转化格式软件下载品茗软件v11.6哪个拍照软件拍成可爱的小视频coreldrawx4软件五彩斑斓的背后总是深邃的黑……马克?李,无论干掉你的是谁,我都会为你报仇,以告慰你在天之灵。 注①:第一次写文,用的是第一人称,慎入。 注②:因为是同一个作者写的, 所以这篇也能在话本小说(如果有更多 人支持的话将来可能会在B站?)找到。 注③:作者是学生党,随缘更新。【千术】+【悬疑】+【腹黑】 我出生千门,千门分八将,上八将和下八将,上八将才是千门正统,手法高明,多方配合,讲究‘术法’,下八将最为让人不齿,没有高明手段,只能坑蒙拐骗,坏事做尽。 我的叔叔是正统的千门正将,我和他学了很多手段,但十赌九亡,在我而立之年,因为千术而进去了,整日唱铁窗泪,现在我弃暗投明,想给大家讲讲我曾经的故事,起到一些警示作用……一个持续万余年的计划 只为对抗 第一圣人毁灭世界的阴谋 却不想其他世界的误入 让整个行动造成了无法挽回的偏差 是绝地重生? 还是陷入绝望…… 2260年人类过度开采地球,生态环境严重破坏,不适宜人类生存 地球权贵移民火星 平民留在地球 创世神埔思在地球放下星际的产物——星穹之子 以拯救百姓于水火我本无心张狂,奈何世间太多魔。可怜世上情与义,还值几两碎银?这世道,我要换,你若挡,那便战!残阳如血,染红了半边天空。 王染风独自一人跨上了最后的归途,是啊!他就是一个可怜虫,但他更是这里的守护者。 我说要有光,于是,有了光!大褚,绍清十年。 妖邪诡祟肆虐人间,儒释道三教鼎立天下。 世间修者纵横,欲夺天地之气运,觅长生之无极。 陆宴清异界魂穿而来,却被告知仅有一天可活,后意外发现所谓的儒术竟是古诗! 侥幸活命的他本想悠闲的过上自己的小日子,却被不断卷入一个个风暴之中…… 姜雨扬,男,22岁。在这个世界,他只是一名普通的袋鼠打工仔,但突然有一天,他莫名其妙地走进了另一个陌生的世界。 在这里,他是万民敬仰的罗汉爷爷,惩奸除恶,他又是一个卑鄙无耻的邪恶首领。 一个行走在光明与黑暗间的走私商人,是无情的屠夫,也是活人无数的神明。 他是无数矛盾的混合体,也是新世界的创造者。 姜雨扬:“我真没想弄这么大动静啊~”无尽大陆拳之斩道者,于无上之地被出生入死五位战友陷害。 重生后的他,携带无尽大陆天空之城至宝再活一世。 这一世!六合八荒拳所开之处无一人争锋。 我辈拳法可以弱,争胜之势可以输,唯独这一身拳意绝不可退! 唯有不断的挥拳,才可变的更强!一部三国时期的剑侠传奇,熟悉的人物,全新的演绎,一次不一样的三国之旅
三界恩怨情仇 永恒极致 越光明越黑暗 莲仇记 夜道之上 炼体十万层 清元都 怀兰 异界:我成神了? 药王出山 网游之我是药神 晤极锦玄 罪于生 一剑证长生 我居然认得上古神文 混在NBA的奥斯卡影后 让喃磕了儿 那些辉耀的时光 龙陨时代 逍遥不记年 蓝牙地址读取软件安卓版 手机什么软件管理后台好 欺沃数控机床仿真软件 quick start软件 金宝贝起名软件的注册码 品茗软件v11.6 欺沃数控机床仿真软件 天地地图软件下载 开网店的记账软件 证件照调分辨率的软件 什么软件可以p照片衣服的软件 什么软件可以p照片衣服的软件 诺信办公软件 手机什么软件管理后台好 凤凰书城软件下载 quick start软件 截证件照的软件 蓝牙地址读取软件安卓版 股票预测软件源码 500万彩票网缩水软件下载 手机什么软件管理后台好 500万彩票网缩水软件下载 股票预测软件源码 原材料进出的软件 迅雷9官网苹果手机下载软件 诺信办公软件 蓝牙地址读取软件安卓版 股票预测软件源码 股票预测软件源码 开网店的记账软件 quick start软件 计件工资软件哪个好用 有可以拍素描得拍照软件吗 凤凰书城软件下载 上古卷轴录制软件 dwg用那个转化格式软件下载 有可以拍素描得拍照软件吗 欺沃数控机床仿真软件 上古卷轴录制软件 拍照三生三世十里桃花软件 dwg用那个转化格式软件下载 天地地图软件下载 哪个拍照软件拍成可爱的小视频 截证件照的软件 爱奇艺播放软件安装包 计件工资软件哪个好用 什么软件可以p照片衣服的软件 dwg用那个转化格式软件下载 诺信办公软件 银河期货程序化交易软件下载 亚星游戏官网 亚星官网 亚星官网 亚星游戏官网 亚星官网 穿越之极限奇兵 聊斋新译 复仇男神 失眠78小时 假装破产后,老婆跟别人跑了 葡京官网 快连下载 亚星管理平台 葡京官网 皇冠登3出租 证件照调分辨率的软件 截证件照的软件 哪个拍照软件拍成可爱的小视频 有可以拍素描得拍照软件吗 银河期货程序化交易软件下载 凤凰书城软件下载 照片换服装换头软件 quick start软件 上古卷轴录制软件 证件照调分辨率的软件 证件照调分辨率的软件 3d溜溜网软件网ug 凤凰书城软件下载 品茗软件v11.6 quick start软件 500万彩票网缩水软件下载 天地地图软件下载 计件工资软件哪个好用 专业宝宝取名软件 有可以拍素描得拍照软件吗 听写汉语拼音软件下载 股票预测软件源码 天地地图软件下载 上古卷轴录制软件 什么软件可以p照片衣服的软件 证件照调分辨率的软件 dwg用那个转化格式软件下载 哪个拍照软件拍成可爱的小视频 3d溜溜网软件网ug 开网店的记账软件