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
无工作怎样办理信用卡武汉工行信用卡过期了怎么办理流程无工作怎样办理信用卡无透支额度的信用卡有什么作用无锡6月信用卡优惠2017无工作申请办理信用卡厦门信用卡那里有套现无条件申请办理信用卡希尔顿 虚拟信用卡下载建行信用卡官网希尔顿押金 信用卡无工作怎样办理信用卡下载信用卡还款武农商信用卡积分兑换无条件申请办理信用卡下载建行信用卡官网厦门信用卡洗车武农商信用卡武农商信用卡芜湖信用卡优惠政策无锡个人代办信用卡武农商信用卡希尔顿 虚拟信用卡现金贷信用卡取现芜湖信用卡优惠政策厦门信用卡洗车店芜湖信用卡优惠希尔顿 虚拟信用卡无锡个人代办信用卡武农商信用卡一篇神诀贯穿古今,一滴精血改变世界。究竟是谁在推动世界,又是谁在暗中想杀我?星元界十大武帝之一的破军武帝二十年前突然陨落,二十年后重生在天火帝国镇国公府的废柴公子,从此神挡杀神,魔挡杀魔 乾彪的眼光很长远,做事很爽快,从一名保安队长变成一代尊神,其中经历过酸甜苦辣,过五关斩六将,当上神策宫宫主的女婿是他正确的选择。本书又名《王者修炼》、《你爽你牛》、《星际霸主》等。【寂寞不谈爱,孤独不饮酒。】 女儿生日当天,我意外看到了妻子的手机,当谎言被揭穿的时候,我发现妻子真的很懂“生活。” 来到地球的雷伊、盖亚、卡修斯、布莱克,结识了一名人类——白绥。短暂的平静,不足以说明世界的和平。阴谋潜伏在周围的一切中。“这是一场精心策划的戏。请不要改写。”面对这一切,迎来的是白绥的冷笑。“我的命运,不需要别人插手。”前世的情缘,必于今生延续。“你是…阿克希亚?”“即使我不想承认,但也无可奈何——”冰雪女皇?阿克希亚驾到。 平行世界!普通人王超,意外获得超级成龙系统。 该系统,可以根据别人的话语,来获得能力,由于王超嘴欠,导致自己的小伙伴,变成豆丁大小,自此开启“救赎”之路。 系统开启学霸之力。 系统开启小康之家。 系统开启黑客之力。 系统开始超级神医! 什么? 系统让我去追女人?王超不乐意,太麻烦!什么?追不成功,终生不举? 正所谓,系统在手,天下我有,系统在手,毁天灭地,系统在手,妻妾成群。 超级成龙系统在手,爽爽爽! 故事始于二十世纪九十年代中期,大学生陶弥渡在列车上结识了同去南方的两位演员欧阳秋歌和戴玲,经历种种人生百态、风风雨雨。描写他们的友情、爱情、婚姻、事业。深入刻划他们之间的悲欢离合、爱恨情仇。【灵气复苏+沙雕+热血+异族入侵+友情+系统+觉醒异能】 李聪明觉醒系统后在一次偶然中发现,只要夸赞系统,系统就会奖励他各种各样,稀奇古怪的东西。 “系统,你就是神!” 【检测到宿主夸赞系统,奖励冰系异能修炼功法一本】 “系统,你简直就是万千系统里面最帅,最强的那一个!” 【奖励生命之树一棵】 “系统,你就是我的再生父母!” 【奖励小萝莉一只】 从此,这位少年就在拍马屁的道路上越走越远。这是一个称作《灵脉大陆》的神奇世界,这个世界没有魔法,没有武术,没有战斗力,却有着神奇的灵脉。这个世界的每个人在10岁的时候都会在灵脉大殿中,在灵兽师或灵斗士的帮助下进行灵脉觉醒。灵脉可以增强体魄,辅助人们的日常生活。有特殊天赋的人可以通过自身灵脉或召唤灵兽进行修炼并进行战斗,这些人被称为《灵斗士》和《灵兽师》 亡国遗珠沐岚(女主),一步步修炼灵脉,在灵兽(男主)望天君的辅佐下,由凡人之躯修炼成神界监察人界的使者判官,最终铲除了灵脉大陆上的邪恶力量,报了亡国之仇,成为了灵脉大陆上强者。诸神之末代,破碎的大陆,分裂的天国,诡谲的预言,所谓的神选者究竟是否能扶大厦之将倾?大神座上消失的群神,两座不知名的宏伟雕像,一千年前的神战究竟历程如何,外界入侵的群龙又到底为何而来,支持这个世界的是正义还是某个物品的谎言,而神选者又与不信者之间碰出怎样的爱恨情仇?敬请观看拙作神之末代,来领略神与人的最终篇章。曹泽带着系统穿越大唐,只要花钱就可以抽到各种东西。 开局遇到程处默,误打误撞成了国师。 “陛下,如今灾民遍野,急缺大量粮食!” “不慌,国师那里有粮卖。” “陛下,边关告急!” “来人,去国师那里买点98K来。” “陛下,如今大唐建设急缺人力!” “带上国师,咱去国外走一圈。” 从此,大唐的龙旗插满了世界各个角落。 日光照耀之处,皆为大唐领土!
大道争锋之不朽 全民制作大师横空出世 猛龙出狱 顶峰之约 诡案法医神探 开局大雪龙骑的无敌了 杀破狼之千年劫 消失的罪人 第四大陆:冰火重生 秦明法神 326计划 地球的再分裂:燕赵楚鼎立 猎灵士 苍穹诀 我的穿越门 盛道之行 从秀才到高僧 穿越明朝假太监 地狱中的行者 落尽天因 芜湖办理信用卡中介 希尔顿支付信用卡 厦门信用卡洗车 无锡6月信用卡优惠2017 芜湖办理信用卡中介 芜湖哪里有办信用卡的 厦门信用卡洗车店 下载建行信用卡官网首页 芜湖办信用卡的 下载信用卡还款 希尔顿 虚拟信用卡 咸阳千里行车贷信用卡 芜湖信用卡优惠 希尔顿支付信用卡 无工作申请办理信用卡 无锡6月信用卡优惠2017 厦门信用卡洗车店 芜湖办信用卡的 无锡个人代办信用卡 无工作怎样办理信用卡 希尔顿支付信用卡 无条件申请办理信用卡 武汉工行信用卡过期了怎么办理流程 武农商信用卡积分兑换 下载建行信用卡官网 芜湖信用卡优惠 芜湖办信用卡的 武汉工行信用卡过期了怎么办理流程 无锡个人代办信用卡 芜湖办信用卡的 无锡6月信用卡优惠2017 希尔顿支付信用卡 无条件申请办理信用卡技巧 无工作申请办理信用卡 芜湖哪里有信用卡垫还 无锡6月信用卡优惠2017 无条件申请办理信用卡技巧 厦门信用卡洗车 芜湖信用卡优惠 无条件申请办理信用卡 无透支额度的信用卡有什么作用 下载平安信用卡 芜湖信用卡中介 咸阳千里行车贷信用卡 武农商信用卡积分兑换 希尔顿支付信用卡 咸阳千里行车贷信用卡 无透支额度的信用卡有什么作用 芜湖信用卡优惠 厦门信用卡那里有套现 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 熵定录 南京,抱紧我! 一眼万年ONE 我不是箭神 游戏太菜,死后入游戏地狱 葡京官网 快连下载 欧博官网 葡京官网 欧博官网 无透支额度的信用卡有什么作用 厦门信用卡洗车 芜湖哪里有办信用卡的 咸阳千里行车贷信用卡 厦门信用卡洗车店 无工作申请办理信用卡 咸阳千里行车贷信用卡 无锡个人代办信用卡 芜湖信用卡中介 武汉工行信用卡过期了怎么办理流程 下载建行信用卡官网首页 芜湖办信用卡的 下载建行信用卡官网首页 无锡6月信用卡优惠2017 下载平安信用卡 芜湖哪里有信用卡垫还 厦门信用卡那里有套现 芜湖信用卡优惠 无锡6月信用卡优惠2017 芜湖信用卡中介 芜湖信用卡优惠 下载建行信用卡官网 芜湖信用卡优惠政策 无工作怎样办理信用卡 希尔顿支付信用卡 无条件申请办理信用卡 无锡个人代办信用卡 无透支额度的信用卡有什么作用 无锡个人代办信用卡 厦门信用卡那里有套现