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
亲密敌人电影在线观看千面大盗老电影1969亲情电影推荐观后感青春异地恋的电影青禾男高电影在线观看亲密敌人电影在线观看女仆的故事 电影亲情电影推荐观后感漆子美演过的电影飘 电影 演员表庞贝末日电影英文介绍亲情电影推荐观后感女狙击手 电影百度云庞贝末日电影英文介绍青春电影的异地恋飘 电影 演员表女神枪手 电影庞贝末日 电影好句英语青禾男高电影在线观看亲密敌人电影完整版骑士风云电影庞贝末日 电影好句英语漆子美演过的电影枪声俱乐部 电影青禾男高电影前苏联讽刺喜剧电影青禾男高电影钱王拳王2电影国语亲密敌人电影完整版女女性百合电影广袤无垠的具象大陆,具象者们,打通三脉七轮,修炼着脉气。 根轮开,红莲绽放,具象现: 腹轮开,橙莲绽放,具象量变: 脐轮开,黄莲绽放,变化现: 心轮开,绿莲绽放,生命现: 喉咙开,蓝莲绽放,灵性现; 额轮开,紫莲绽放,智慧现: 顶轮开,千瓣莲花,彩虹现。 红十具象师,橙百具象师,黄千具象师,灰迷具象者,绿生具象师,蓝灵具象师,紫归具象师,彩虹尊者。 生命之花,如此璀璨,如果可以,我愿奉献!高中那几年,跟女同学的的千丝万缕,跟体育生的恩恩怨怨,跟其他学校学生的是是非非,虽然消失在时空,但还是想写点什么,留下些什么。 那些开心的岁月,那些流泪的时候,那些拥抱的感受,那些亲吻的镜头,那些疯狂的时候,那些难忘的温柔。 都在这万千文字之中。 纵然来去匆匆都是空,纵然红尘一场,只是梦。随着月球人的皇室后代纳尔斯逃到地球,刘宣与安晓天的生活发生了改变,刘宣选择接纳尔斯的灵魂,成为了第一个捍卫者成员蓝面人,安晓天也因战斗中受伤而接受了与烈鹰装甲的合体,成为烈鹰侠。纳尔斯告诉了他们关于刹神者的可怕秘密,两人开始紧急组建捍卫者联盟,寻找中国其他几位身怀绝技的英雄,以对抗刹神者的入侵。除了他们两人,还有中国最强狙击手梦魇,双臂力大无穷的神拳,甚至经过千年修炼后的孙悟空,等等。一场决定人类命运的战争,一触即发。 赵阳意外绑定可以往返现代与明末的传送门。 穿过传送门,对面是气势汹汹,向着他冲刺而来的八旗骑兵。 数次尝试都铩羽而归,赵阳直接上交传送门,与官方合作。 当官方看到赵阳展示的另一个世界后,整个大夏都为之轰动。 一个星球的资源,一个全新的未开发世界! 大夏官方第一时间下定决心,制定绝密计划,设置最高权限。 终于,再次踏入明末大地的赵阳。 身后,是一条蓄势待发的庞然巨龙……意外穿越,才过二十年,又因为意外穿越了……自此,每二十年,白风就会自(被)愿(迫)踏上新的旅程女主穿越成真假千金里面的真千金,假千金是白莲花女配,而真千金是炮灰。女主穿越过来,发现这个世界是人鬼共存的世界,原女主是一位玄学大师,原女主和女主以后会相爱相杀(两个都是爱财的性子,生意上会有所冲突。)【都市重生+宠妻+赎罪+商战】   “周飞,你相信有来生么?”   “如果有可能,我不想有来生,我只想重活一次,这辈子,有太多的遗憾了……”   濒死的虚弱感和无力感,让周飞连声音来自何方都无法分辨,不甘心、悔恨、遗憾…百般情绪涌上心头。   苟活三十多年,他对所有人都问心无愧,唯独对不起妻子和儿女!   带着这股极强的悔意,周飞重生到了十年前。   看着那一大两小三个身影,他跪倒在地,热泪盈眶。数十亿人类降临万国。 争夺最终顶峰的万国之主。 天量的气运,资源作为奖励,国主们互相厮杀。 还有那些繁星般的人物。 一品谋士,诸葛亮,司马懿,姜子牙…… 一品武将,岳飞,霍去病,李靖,韩信…… 一品美人,秦淮八艳,杨玉环 甚至连绝品修者张三丰都有! …… 金钱,权力,长生! 重生回来的秦权,带着脑海中的记忆,率铁血大秦,誓要镇压一切不臣服之人!当科技撞上魔法的狂潮,以太之光闪耀,新世界降临。 “所谓火种,乃是为人类的生存繁衍做出巨大贡献甚至能够改变世界的元素。 我曾想,第一次火种便是人类还是猴子的时候学会了使用火焰,驱散黑暗和寒冷,抵御猛兽,使人类在这片土地得以繁衍生息。 第二次,人类发现了火焰之中蕴含的强大力量,制造出了机械,自此也彻底站在了这颗星球的物种之巅,而随之而来的便是无休止地战争。 第三次,人类发现了铀以及一大批的放射性物质,核武器的出现更是使得生命如同草芥! 而如今,第四火种出现,超脱于构成世界的四元素,存在于万物之中,以太,它将传说中的一切展现在你我的面前,拥有无限的可能!”他高傲,但是宅心仁厚。 他低调,但是万人敬仰。 他是天启皇帝的好朋友,亿万人的心中偶像。 他的宗旨是创建和谐新大明。
篮坛教父:开局执教大姚夺冠 风暴战纪 怨种太子江湖事 离乡三千里 奇魄世界 弗卡拉特大陆编年史 不安的骷髅 做梦到异世界被太后爱上 命运之另一个世界 雄霸初中 重生:回到八零当首富 魔道巅峰之天似红霞岸 九魔圣墟 废柴的自我救赎 屹立高墙之下 我的超凡力 重塑快乐时代 心理医生的故事 世说阴阳 末日终结之废土求生 ?d臣韩国电影神马视频 匹夫电影完整版战争 女神枪手 电影 青禾男高电影在线观看 千面大盗老电影1969 钱王拳王2电影国语 女神枪手 电影 平步青云 电影 1946 前苏联讽刺喜剧电影 女狙击手 电影百度云 人鬼情未了电影男主角 人鬼情未了电影男主角 亲密敌人电影百度云 匹夫电影完整版战争 亲密敌人电影在线观看 青禾男高电影在线观看 人鬼情未了电影介绍 ?d臣韩国电影神马视频 骑士风云电影下载 亲情电影推荐观后感 匹夫电影完整版战争 亲情电影推荐观后感 骑士风云电影下载 庞贝末日 电影好句英语 飘 电影 演员表 亲密敌人电影百度云 ?d臣韩国电影神马视频 骑士风云电影下载 骑士风云电影下载 前苏联讽刺喜剧电影 青禾男高电影在线观看 匹夫电影完整版 青春异地恋的电影 亲密敌人电影在线观看 枪声俱乐部 电影 青禾男高电影 青春异地恋的电影 女神枪手 电影 枪声俱乐部 电影 青春电影的异地恋 青禾男高电影 平步青云 电影 1946 亲密敌人电影完整版 人鬼情未了电影介绍 庞贝末日电影英文介绍 匹夫电影完整版 人鬼情未了电影男主角 青禾男高电影 亲密敌人电影百度云 女人上战场的电影 亚星官网 亚星游戏官网 亚星游戏官网 亚星官网 亚星官网 诡案法医神探 入赘后,娘子对我太好怎么 少女回魂 器魂大陆1绝神之人 末日新生之林落 亚星官网 万利官网 欧博游戏官网 亚星官网 AG真人 骑士风云电影下载 女狙击手 电影百度云 亲密敌人电影完整版 亲密敌人电影完整版 女女性百合电影 女仆的故事 电影 匹夫电影完整版战争 人鬼情未了电影男主角 女人上战场的电影 钱王拳王2电影国语 亲密敌人电影在线观看 平步青云 电影 1946 人鬼情未了电影介绍 亲密敌人电影完整版 女女性百合电影 青春异地恋的电影 飘 电影 演员表 飘 电影 演员表 枪声俱乐部 电影 钱王拳王2电影国语 女狙击手 电影百度云 女女性百合电影 匹夫电影完整版 飘 电影 演员表 女仆的故事 电影 女神枪手 电影 骑士风云电影下载 青春电影的异地恋 匹夫电影完整版 亲密敌人电影百度云