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
佳能做照片软件方舟刷物品软件修改器什么软件检查系统硬件信息查询个人简历表格个人简历写什么软件爱剪辑软件ios佳能做照片软件家用摄像软件下载什么软件检查系统硬件信息查询社区人口管理系统软件起明星局域网监控软件注册机音频编辑软件au3.0免费版什么软件检查系统硬件信息查询能配字的图片软件音频编辑软件au3.0免费版煤炭井巷工程07预算软件起明星局域网监控软件注册机移动高清电视直播软件tv桥梁涵洞计算软件桥梁涵洞计算软件vip免费观看的软件办公表格软件叫什么软件桥梁涵洞计算软件社区人口管理系统软件华硕视频驱动管理软件.ifox转mp4软件什么软件录制视频改变声音.ifox转mp4软件华硕视频驱动管理软件vip免费观看的软件能配字的图片软件2320年,人类的足迹已经步满太阳系周边的星系,科技迅速发展。令人意外的是,人类没有发现任何有文明的星球。迅速膨胀的人类开始内战,一个名为陆南的运输舰长,在内战时误入虫洞,在一个荒芜的星系,和两个敌人一起开启新的人类文明。我叫霍子胜,我的故事,从去邻市卖烧烤说起。 也许那一天就是这不寻常的开始。 我的身边不是人,是妖怪。 他们千奇百怪。和我是相爱相杀,互相调侃。 别觉得很奇怪,我还有一个鬼师傅,他的身份也很不简单。 我与鬼为伍,吃阴饭,度阳间。 不平之事我皆来! 猫妖,狗妖,九尾狐妖,吸血鬼,这些都是我的朋友。 最后我还有一个放不下的人,她叫凯瑟琳 她与我故事很精彩,等你来看。 与我拿着床边的纸巾一起嘤嘤嘤吧!一块大陆上三个帝国的对抗 一次统一战争的过程 一次王朝的颓败与堕落 一次女主登临的时代 鹿死谁手,尚未可知……徐辰一朝穿越发现自己的的幸运值居然是满的?每次开卡别人白光一片,自己却时时出金,而且几乎都是战斗力又高,颜值又高的美少女?“不是你们也太弱了吧,连我卡灵一击都扛不下来啊!”众人满头黑线,你这幸运值开挂的人别人打得过???异界的国度妖魔苏醒,那里即将面临生死劫难,轩辕庄就是摆脱生死劫难的寄托。轩辕庄自己在非凡经历得以砥砺成长。他,虽是庶子,但却是王国八大贵族之一格林家族内定继承人,长相虽平凡,但他的心不甘于平凡。虽然被人陷害、不得不被流放追杀,但天降系统,助他成神。且看一个小领主如何借助系统和奇遇,一步步崛起,最终称霸大陆.....虚拟现实游戏《冷兵器时代》发售,它硬核的游戏设计和相当于现实中地球3倍体积的世界,让它在发售之前就受到了全民的追捧。 当然,地球共和国亚洲区公民朱天云作为一名历史扮演爱好者和历史爱好者,也是毫不犹豫的预定了一台机器,成为了这个世界中的穆拉多伯爵。然而,一个可怕的阴谋,就十分不起眼的隐藏着在这个制作精良的游戏中。 号角震天,群鸦蔽日,军旗招展,长矛林立。 漫天黄沙之中的古拉姆奴隶战士、武艺高强的军事修会骑士、东方草原上弯弓射雕的勇士、寒冷的北国土地上踏着整齐的步伐,昂首挺胸向着前方缓缓推进的重装步兵……战乱不断,血洒战场! 贵族们的尔虞我诈,针锋相对;百姓们的生活不易,民不聊生;士兵们对受封田产、带着累累的战功和数目令人眼红的战利品解甲归田、儿孙满堂、不愁吃喝的美好盼望……一个有血有肉的世界,等待您的探索! 慢热,永不收费,主角会以一个普通人的方式进入游戏,没有不同于他人的方面(包括系统,运气等)女孩臻浅患有严重的被迫害妄想症,遵照医嘱在放学后独自散心。不料,之后目睹男孩“魏砷”杀人现场。在一场惊心动魄的逐命逃亡后回到家中,一觉醒来,陡然发现时间倒转。面对倒转的时间,步步紧逼的凶手,她该何去何从……《玄幻飞剑》《飞剑大陆》《万年复活》 叶凡,叶家世子,青年一辈第一人,莫名的复活在万年之后…… 自己为何会复活,家族为何会覆灭,心爱之人万年之后为何依旧存活在世… 叶凡终究该何去何从。 现代大学生穷越到秦朝,成为大秦公子,开局就被奸人所陷害,被流放至偏僻穷困乡村。“海阔凭鱼跃,天高任鸟飞。”偏僻穷困乡村,也能发展为一个人人羡慕的世外桃源。
灵异:镜子里的自己 修仙:家族崛起 末世穿越之旅 一壶酒,浮世三千 我以凡体证道 我的妹妹是灵异主播 牧羊记 生存班级 王二狗的妖孽生活 女校那点事儿 西南侠客 修仙:我的系统有点坑 美好的异世界生活之旅 暗星孤影 修真神医在都市 围子八仙群英传 清云九歌 暗夜狂歌 诸天答题游戏 雷罚之主 联帮智能考勤高效签单软件 爱剪接软件下载 移动高清电视直播软件tv 爱剪辑软件ios 联帮智能考勤高效签单软件 爱为生r330清零软件 移动高清电视直播软件tv 听音转文字软件 什么软件录制视频改变声音 计算起止日期的软件 无线路由器驱动软件 无线路由器驱动软件 电力工程项目管理软件系统 爱剪接软件下载 佳能做照片软件 爱剪辑软件ios 淘宝数据修改软件下载 什么软件录制视频改变声音 重庆市餐饮增值税开票软件下载 什么软件检查系统硬件信息查询 爱剪接软件下载 煤炭井巷工程07预算软件 重庆市餐饮增值税开票软件下载 音频编辑软件au3.0免费版 起明星局域网监控软件注册机 电力工程项目管理软件系统 什么软件录制视频改变声音 方舟刷物品软件修改器 重庆市餐饮增值税开票软件下载 什么软件录制视频改变声音 爱剪辑软件ios ppt文字识别软件 个人简历表格个人简历写什么软件 佳能做照片软件 华硕视频驱动管理软件 .ifox转mp4软件 个人简历表格个人简历写什么软件 移动高清电视直播软件tv 电力工程项目管理软件系统 煤炭井巷工程07预算软件 .ifox转mp4软件 计算起止日期的软件 微信公聊天记录恢复软件 淘宝数据修改软件下载 音频编辑软件au3.0免费版 ppt文字识别软件 无线路由器驱动软件 .ifox转mp4软件 电力工程项目管理软件系统 家用摄像软件下载 亚星游戏官网 亚星官网 亚星官网 亚星游戏官网 亚星官网 灵异:镜子里的自己 大宋狂徒 奇情男儿铁血 我的妹妹是灵异主播 王二狗的妖孽生活 万利游戏官网 欧博官网 皇冠登3出租 万利游戏官网 快连下载 起明星局域网监控软件注册机 音频编辑软件au3.0免费版 办公表格软件叫什么软件 微信公聊天记录恢复软件 煤炭井巷工程07预算软件 佳能做照片软件 联帮智能考勤高效签单软件 听音转文字软件 家用摄像软件下载 联帮智能考勤高效签单软件 爱为生r330清零软件 联帮智能考勤高效签单软件 音频编辑软件au3.0免费版 什么软件录制视频改变声音 vip免费观看的软件 电力工程项目管理软件系统 办公表格软件叫什么软件 无线路由器驱动软件 佳能做照片软件 爱剪接软件下载 计算起止日期的软件 听音转文字软件 个人简历表格个人简历写什么软件 重庆市餐饮增值税开票软件下载 爱为生r330清零软件 .ifox转mp4软件 爱剪辑软件ios 个人简历表格个人简历写什么软件 淘宝数据修改软件下载 爱剪辑软件ios