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
重庆瑞洁酒店电话安吉小杨开锁电话赣州航空电话什么号码宜宾关斗山电话虞城要酒电话是多少重庆瑞洁酒店电话奥克兰买电话卡赣州航空电话什么号码濮阳天河海鲜电话号码揭阳天鹏酒店按摩电话长岭春天旅游团电话重庆瑞洁酒店电话丰县饭店大全电话号码长岭春天旅游团电话赣州航空电话什么号码揭阳天鹏酒店按摩电话子洲客运站电话虞城要酒电话是多少虞城要酒电话是多少高密如家快捷酒店电话大连乐购座机电话号码深圳到化州高校车电话濮阳天河海鲜电话号码临沂赶海海鲜电话二店景德镇恒大游泳馆电话广州到温州客车电话是多少宜宾关斗山电话南京旅游局咨询电话高密如家快捷酒店电话衡阳市林隐水疗电话一个普通的大学下午,越识州一觉醒来,发现所有人全部陷入了沉睡。本以为这只是一次突发事件,却不想从此全球入梦,夜夜进入相同的梦境,夜夜在恐怖梦境中死去,无人可以逃脱。只有在梦中活下去,解开一个个恐怖梦境,才能找到背后的真相。金天问身具极品根骨,但是被青梅竹马的玩伴谷艳红陷害,使用邪术盗走了极品根骨,这让金天问成为了废人。 金天问发誓一定要报仇雪恨的,但是,谷艳红已经成为了武功派掌门的亲传弟子,位高权重,势力庞大,金天问只能暂时隐忍,等待报仇的机会。 为了斩草除根,谷艳红恳求武功派掌门派人将金天问掳来,放在悬空的铁索桥之上,铁索桥的两端,有剑气逼人的灵剑和凶猛的妖兽赤目白猿阻挡,让金天问无法离开,只能等死。 此时,金天问觉醒了万倍模拟修炼系统,能够让时间暂停,修炼上几百天、几千天,如此,金天问在系统的帮助下,终于可以修炼了,达到了金刚境第三重的境界,拔出了剑气逼人的灵剑,然后斩断了赤目白猿的铁链,放走了赤目白猿。福无双至祸不单行。法洛斯大陆先失去了日月陷入永夜,随后势不可挡的冰魔大军又渡海而来毁灭了大陆诸国,奴役了人类一百年。 百年后,一位神秘的青年用火焰魔法驱逐了冰魔,自身化作新的太阳照耀大陆,被人类尊为火神。 但火神未能带来真正的和平。各类魔物仍不断接踵而来,新生的人类帝国培养了有着超人体能、感官的猎魔士。 作为新晋猎魔士的男主角李奥,因解救了在打猎时遭到魔物袭击的皇帝,被皇帝提拔为贴身侍卫。可之后不久,皇帝遇刺亡,公主遭到绑架,李奥被当成了凶手。 在为自己洗刷冤屈的过程中,李奥发现了猎魔士的起源,却也因此使猎魔士和人类对立起来,直至爆发内战。 对人类失望的火神再次现世,企图毁灭一切。在李奥爆发出自身隐藏的未知力量后,火神和战争被阻止了。李奥也为了调查太阳消失的真相,踏上了在穿越世界的旅行…… 宇宙中人类也只是一抹看不见的尘埃,数百亿年前的地球是否有着同样的文明,又为何消失。 时光倒流回到如今或者过去,你是否会后悔曾经的选择,或者你想改变什么。 时光如火苗刹那的流光便是千百年,星空下又有多少未知的文明世界,是否各种结局早就已经注定。 是人类,还是未来科技,或是其他的文明在谱写宇宙中的轨迹与衡和。 地球仅仅只是宇宙中的一粒尘埃。 那为何你我一样在争渡,渡什么,过去,还是未来,或者是现在。29岁的天岚,事业无成,刚刚朋友也和自己分手,独自一人走在熟悉的街道上,往事历历在目,也许终究是自己错了,但你们却也不该这样对我······ 如果能够回到过去,我想我一定······重生东汉,觉醒菜鸟系统 哪知这个系统与宿主性格不合,下一秒系统直接造反,竟化身成为 最强帝王系统附身他人身上。 誓要与昭昊死磕到底。 从此,昭昊的漫漫三国路变得艰险无比。 为了找出隐藏在背后下黑手的系统,昭昊开启了他漫长的背刺生涯。 凡是有资格成为的帝王的人,都成为了他背刺的目标。 吕布:我此次前往雁门,是为杀了昭昊小儿,以报夺妻之仇。 昭昊:什么,昭昊小儿竟然如此卑鄙,兄长放心,辽与你同去,定斩下昭昊小儿人头以泄兄长心头之恨。 当晚二人把酒言欢,酒后,昭昊将匕首一把刺进吕布的心窝。 昭昊:“兄长,看来你不是系统附身之人。” 董卓祸乱朝纲。 曹操:“董贼不除,我大汉四百年基业岌岌可危,子阳,今晚你我二人就潜入相府,斩杀国贼董卓,还天下一个朗朗乾坤。” 昭昊:“就依孟德之言。” 当晚,二人潜入相府,曹操拿着七星宝刀一步步朝熟睡的董卓逼近,而他的背后,昭昊正手持匕首对准他的心窝。 女孩臻浅患有严重的被迫害妄想症,遵照医嘱在放学后独自散心。不料,之后目睹男孩“魏砷”杀人现场。在一场惊心动魄的逐命逃亡后回到家中,一觉醒来,陡然发现时间倒转。面对倒转的时间,步步紧逼的凶手,她该何去何从……虞朝十万年以来,各等修真家族层层把控修行资源,世人皆以为寒门再难出贵子的时候,孟浩然却是在暗中观察。 你们斗法,我种田……   你们打架,我囤货……   你们争夺,我抄底……   直到众人回过神来才发现,原本处于微末之中的孟氏一族已经逆流而上,步步为营,直抵巅峰仙家!一座图书馆,一本普通的书,一个平凡的大学生,在那一天之后,命运产生了翻天覆地的变化林大厨的故事!!!!!!!!
我不想当贼头 深渊山海 全民御兽:开局天赋映照诸天 地囚:天降末日 我真不想当大侠 无限绝境 逝者无休 穿越到影视的反派 长安鉴 重生:回到过去当医圣 玄幻:毛头小子穿越三界 三国:系统骗我给曹操打工 幽冥话本:太史令 生活,一门荒诞的艺术 一品典签官 逍遥小里正 别具一格 都市:我能看到宝物气息 高武:我能查看人生剧本 超级天才保镖 安吉小杨开锁电话 揭阳天鹏酒店按摩电话 子洲客运站电话 虞城要酒电话是多少 安吉小杨开锁电话 上海现代广场电话 慈溪杭州湾环球酒店电话号码 绵阳长虹酒店电话 上海现代广场电话 丰县饭店大全电话号码 舜华路如家电话 舜华路如家电话 临沂赶海海鲜电话二店 揭阳天鹏酒店按摩电话 重庆瑞洁酒店电话 景德镇恒大游泳馆电话 成都青羊区广电电话号码 广州到温州客车电话是多少 新疆清河县委电话 重庆瑞洁酒店电话 巴中办事处电话宁波 赣州航空电话什么号码 新疆清河县委电话 深圳到化州高校车电话 绵阳长虹酒店电话 胶州到沂南汽车电话 广州到温州客车电话是多少 新疆清河县委电话 大连乐购座机电话号码 广州到温州客车电话是多少 虞城要酒电话是多少 巴中办事处电话宁波 宜宾关斗山电话 重庆瑞洁酒店电话 临沂赶海海鲜电话二店 景德镇恒大游泳馆电话 中山古镇皇城会所电话 慈溪杭州湾环球酒店电话号码 临沂赶海海鲜电话二店 中山古镇皇城会所电话 景德镇恒大游泳馆电话 登封如家快捷酒店电话号码 高密如家快捷酒店电话 成都青羊区广电电话号码 长岭春天旅游团电话 巴中办事处电话宁波 舜华路如家电话 景德镇恒大游泳馆电话 胶州到沂南汽车电话 奥克兰买电话卡 亚星官网 亚星官网 亚星游戏官网 亚星官网 亚星官网 玉京封神战 我在修仙界有百万粉丝 群主的游戏 愿黑星照常升起 生命之树one 亚星游戏官网 万利官网 欧博游戏官网 亚星游戏官网 葡京官网 安吉小杨开锁电话 南京旅游局咨询电话 重庆瑞洁酒店电话 绵阳长虹酒店电话 慈溪杭州湾环球酒店电话号码 深圳到化州高校车电话 丰县饭店大全电话号码 宜宾关斗山电话 舜华路如家电话 揭阳天鹏酒店按摩电话 南京旅游局咨询电话 南京旅游局咨询电话 大连乐购座机电话号码 大连乐购座机电话号码 慈溪杭州湾环球酒店电话号码 成都青羊区广电电话号码 奥克兰买电话卡 上海现代广场电话 潮阳海门小吃电话号码 绵阳长虹酒店电话 子洲客运站电话 胶州到沂南汽车电话 丰县饭店大全电话号码 中山古镇皇城会所电话 成都青羊区广电电话号码 巴中办事处电话宁波 上海现代广场电话 上海现代广场电话 登封如家快捷酒店电话号码 丰县饭店大全电话号码