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
中外热点 论文英文会议论文数据库关于物业管理论文题目合并报表实例论文毕业设计论文结构中外热点 论文体育 毕业论文关于物业管理论文题目论文的目录格式遗传病 论文大学生犯罪心理学论文关于物业管理论文题目学校食堂用餐安全管理论文大学生犯罪心理学论文盈利能力分析论文范文遗传病 论文世界宗教在中国论文中日韩关系论文3000字中日韩关系论文3000字环境问题案例分析论文追寻好课堂论文中日韩关系论文3000字论文的目录格式沈阳体育学院毕业论文关于提高餐厅服务方面论文对地质的论文关于提高餐厅服务方面论文沈阳体育学院毕业论文环境问题案例分析论文学校食堂用餐安全管理论文霸王再次醒来时,眼前是一片夕阳,乱军厮杀的声音犹然在耳…… 高粱河,一个对于宋人来说久久不能平复的地方,手中的霸王枪熠熠生辉,这一次,好好来! 公元979年,项羽于高粱河大破辽国,收复燕云。 而后,展开了他征伐天下的宏梦。 攻西夏、破大理、复西域、征东瀛。 拜占庭、阿拉伯、还有你什么神圣罗马帝国帝国 也得倒在我拔山扛鼎的气势之下! 亚欧大陆尽在掌握! 虞姬,你看到了吗?你的男人,成为了这世界之王!窝囊废赘婿冯一洵,无意中得到天师传承,成为最后一名天师。 面对出轨的妻子,无情的岳母,比自己更窝囊的岳父。 冯一洵从此开启了不一样的人生。 妻子:老公,其实那是个误会。 岳母:一洵,妈妈真的知道错了。 岳父:哥,咱俩以后就当兄弟处!能斩敌人百万雄师,却对她无能为力! 妻!是我的妻!    怨我、恨我、仇深似海! 无论如何弥补,都无法填平,婚前抛弃带给她的蚀心伤害! 这一生,只为获取她的原谅,哪怕是……    每一天都发狂! 刘阳三岁被一对不孕夫妇收养,同时被收养的同龄妹妹刘晨与他一起进入刘家,却因天生怪病被另眼相看,这般悲惨命运却被一位白发神医华佗扭转......(女帝,气运,悟道,天才,争霸) 瑶池圣女:手握日月摘星辰,世间无他这般人。 青莲剑圣:不会真有人觉得,世子大哥是凡人? 狠人女帝:不为成仙,不为成帝,只为在红尘中长伴君之左右! 君逍遥很难受。 他一句话,让女帝娘子,悟出了一念花开,君临天下。 他一首诗,让青莲剑圣,明了了绝世剑意,万古长歌。 他一幅画,让瑶池圣女,炼成了六道轮回,造化天功。 气运之子,一路高歌,一路横推,一路喊着世子才是真无敌! 君家世子,一直羡慕,一直苦笑,一直都是平平无奇小世子…… 终有一日,荒域大乱。 君逍遥破了老祖留下的世子不能出府的预言。 惊天动地的事发生了。 我为天子镇国门,血染江山亿万里! 不出世则以。 一出世必成天下第一! …… 一段暗淡下去的历史,时光漫漫下有些阴郁,寻找永存着的那些牺牲与不朽。以“我们”的视觉慢慢来看看那十四年的不易。 我们只是简单的普通的我们,没有以一敌百的军事技能,也没有枪林弹雨中漫步的超人运气,将军们引领着我们填入一座座血肉“长城”,去掠夺中华民族的一丝生机。 那些年被我们啃死的日军,是否还记得我们留下的牙印! 那些年刺入日军胸膛的刺刀,是否还是那么锋利! 那些年我的兄弟,是否还有人记起我们静卧荒芜之地! 那些年率领我们冲锋的将军,是否还有人铭记您的杀身成仁! ——医郎 剑足够利,拳头足够大,才是真正的道理…… 方酒本是清苦知足,乐活安稳的一名少年,没有雄心野心,没有凌云之志。然而江湖上哪有什么真正的安稳。 风云难测,人心更是诡变。江湖险恶,三擎百教林立,有人径来直去,有人心术权谋。赤子少年如何在纷争中挣扎,是泯然众人,还是一步登天。 诸君,且观风云。小说以多个单元故事呈现给读者,欢迎大家阅读。我和几个兄弟喝醉后醒来竟然穿越到别的世界,真尼玛离谱李长歌穿越了。 开局家徒四壁,一贫如洗。 只有一个相依为命的姐姐。 好在这是一个“小说家”的世界。 在这个世界,只要写小说,便能获得非凡的力量,甚至能够依靠小说成圣! 看着这个世界普遍流传的小说著作,李长歌表示就这啊? 《神雕》出世,“侠之大者,为国为民”被千万人追捧! 《三国》出世,无数谋臣直呼原来计谋还能这样玩?! 《西游》出世,无数人惊叹天庭是不是真的存在! 《水浒》出世,就连皇帝也坐不住了! …… 某一天深夜,李长歌看着身边美貌温婉、娇艳无俦的李采薇,义正辞严的道:“姐姐请自重,我要写小说了!”
一介布衣 冥王殿! 一剑封情 剑指神明 我的地球是个废材! 北山 王臣 天纪:靖帝本纪 大唐之混世小魔王 恐怖世界:我比厉鬼还诡异 争天帝战 鼠乱诸天 废土之辉 武者的荣耀 何为妖魔 贪婪之种 拾少年 异世重生的神王 天下第一炼器师 乱世豪杰传奇 穿越自带系统之圣人传承 家乡建设论文 军事方面的论文 世界宗教在中国论文 毕业设计论文结构 家乡建设论文 对地质问题的论文 世界宗教在中国论文 财务预算管理系统论文 对地质的论文 荷马史诗历史论文 西方文明 论文 西方文明 论文 河北农业大学现代科技学院论文格式 军事方面的论文 中外热点 论文 毕业设计论文结构 数学小论文 初一 对地质的论文 国际关系论文 英文 关于物业管理论文题目 军事方面的论文 盈利能力分析论文范文 英文会议论文数据库 大学生犯罪心理学论文 遗传病 论文 河北农业大学现代科技学院论文格式 对地质的论文 英文会议论文数据库 国际关系论文 英文 对地质的论文 毕业设计论文结构 世界宗教在中国论文1200字 合并报表实例论文 中外热点 论文 沈阳体育学院毕业论文 毕业设计论文结构 合并报表实例论文 世界宗教在中国论文 河北农业大学现代科技学院论文格式 盈利能力分析论文范文 关于提高餐厅服务方面论文 荷马史诗历史论文 数据分析与挖掘论文 数学小论文 初一 大学生犯罪心理学论文 军事方面的论文 西方文明 论文 关于提高餐厅服务方面论文 河北农业大学现代科技学院论文格式 体育 毕业论文 亚星官网 亚星官网 亚星游戏官网 亚星官网 亚星官网 龙吟一:血雨腥风 蓝星天虎 唐朝史之晚唐风暴 剑域:万界提取系统 仇杀江湖 AG真人 亚星管理平台 亚星游戏官网 AG真人 百家乐官网 西方文明 论文 中外热点 论文 军事方面的论文 荷马史诗历史论文 财务预算管理系统论文 合并报表实例论文 国际关系论文 英文 对地质问题的论文 关于提高餐厅服务方面论文 毕业设计论文结构 关于提高餐厅服务方面论文 数学小论文 初一 毕业设计论文结构 世界宗教在中国论文1200字 世界宗教在中国论文 关于物业管理论文题目 环境问题案例分析论文 财务预算管理系统论文 追寻好课堂论文 英文会议论文数据库 国际关系论文 英文 学校食堂用餐安全管理论文 盈利能力分析论文范文 中日韩关系论文3000字 英文会议论文数据库 世界宗教在中国论文 提取黄酮论文 河北农业大学现代科技学院论文格式 体育 毕业论文 西方文明 论文