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
疯狂圆圈游戏公司七夕小游戏疯狂圆圈游戏服装好的销售游戏大全服装款式搭配小游戏疯狂人吧游戏下载地址钢铁巨乳游戏下载地址疯狂圆圈游戏儿童游戏迷宫大冒险钢铁巨乳1游戏下载枫之谷在游戏界面登入疯狂圆圈游戏钢铁巨乳游戏腐女游戏大全疯狂炸鱼破解版游戏钢铁巨乳1游戏下载改变2048数字游戏服装设计游戏苹果服装设计游戏苹果疯狂唛吉游戏公司感恩的互动游戏有哪些服装设计游戏苹果儿童游戏迷宫大冒险疯狂的线条游戏攻略服装款式搭配小游戏疯狂的免子游戏服装好的销售游戏大全疯狂的线条游戏攻略疯狂唛吉游戏钢铁巨乳游戏“别看这样,可我喜欢他哦,问为什么的话,因为他是我的英雄呀。” “能和他在一起的话,就算世界崩坏又能怎样?” “好了,开始今天异灵部的活动吧!” “额。。学姐,我想问一下,这个异灵现象研究部是进行什么社团啊?” “是超★异灵现象研究部!” “呃呃,好的。” “吭,异灵部呢,是以进行一项伟大而神圣的活动为目的,探索过去与未来无限的奥秘,找到现实与幻想之中的交点……” “比如说” “拯救世界?” “不,比拯救世界更重要!” “哈——”故事主要讲述一个底层小兵从三国乱世中跟随曹操四处征战,与三国众多名将交手,渐渐成长为一员能够独当一面的大将。在乱世征战中主角对以后的出路慢慢产生疑问,更倾向于刘备阵营,在忠诚与背叛中,陷入挣扎与纠结。我叫“空”这是我第一世父母起的名字。我有过很多人生,可每一世的生命只有20年,我好像被什么人给控制了,我要打破这种控制,无论我怎么反抗都是竹篮打水,一场空。直到这一世我终于有了结果………… 地域:东极大陆青州大地,西极大陆西土大漠,南极大陆幽冥群屿,北极大陆冰原之地 青州之南龙岛与大海,青州之北十万大山与无尽深渊云海,西土之南荒漠,西土之北半冰琼海,中州万盛皇朝 樊笼求生:小镇孤苦贫寒,偶遇仙缘却断仙途,挣扎求命半师指路,云游青州初识天下,破生机桎梏得入武道,引武道求生机再遇仙缘,穿青州入龙岛闯山续命,识仙子破樊笼在追仙途 再入江湖:入西土识冯君共破鬼宅,习拳谱悟仙道最强四境,入荒城初练气误入洞天,得造化献机缘再遇半师,拜佛陀得传道再破桎梏,识幼童结黄雄再次上路,走马帮拼魔头名气小传,遇危机识师兄惊险拜师,过恶水走险山教导秦菁,入赌城识宝矿再破一境,进拍卖得残剑练气有成,交紫月知禁地险获仙缘,出禁地遭追杀秦菁走失,出西土游蓬莱武道重修,收兄妹练仙经重返青州。入皇朝访龙虎兄弟再聚。知身世识儒修任重道远,求师尊入祖地盗取机缘,寻龙脉遇福地初次闭关,淬肉身练道心双师惨虐。 听老人讲民间故事奇闻杂谈惊悚传说还有最终结果 九州大陆,万国林立。   赢云穿越大秦,成为始皇第九子,并获得了咸鱼系统,只要咸鱼,就可以持续不断的获得奖励。   于是,   赢云直接咸鱼起来,默默签到,不仅获得了无数奖励,还顺利突破,成了九州唯一一尊陆地神仙!   ……   有一日,   天降金榜,盘点最强生灵。   只见,   大漠之中,赢云一剑开天门,入陆地神仙,屠数十万军,举世震惊!   帝释天:“什么?这世界上还有比我更强的人?!”   孤独求败:“杀尽仇寇,败尽英雄,平求一敌手而不可得!这赢云,值得一战!”   ……   紧接着,   天道神兵榜、天军榜等相继曝光。   神兵榜第一,圣剑轩辕,属大秦九皇子赢云!   天军榜第一,大雪龙骑,属大秦九皇子赢云!   ……   嬴政:“这是朕那咸鱼儿子?!”   ……来自星辰的启示, 人与神明相抗争。 超前进化的智慧, 痴迷幻梦不愿醒。 败军之将,梦途惊醒,逆天改命,铸就新(醒)程。 赵风穿越秦朝成为了始皇帝的第七子,嬴子歌! 原以为远离咸阳便能躲避灾祸,但赵高却找上门,好在系统如愿开启。 【神选一:接受始皇召令,卸下兵权,立即启程返回咸阳。】 【神选二:拒接始皇召令,立刻起兵,自立为王!】 【神选三:接受始皇召令,立刻回都,向始皇索要太子位!】 面对选择,嬴子歌选择了去向嬴政要太子之位。 至此,暴揍胡亥、疯斩徐福、莽破匈奴、凶伏百越..... 蒙恬:报始皇帝陛下,太子殿下率兵诛杀了匈奴二十万。 嬴政:...... 章邯:报始皇帝陛下,太子殿下已经诛杀了六国叛徒,这是刘邦与项羽的人头。 嬴政:...... 科技为刀有两面, 毁灭、创生一念间。 恶人持刀则为恶, 善人持刀则为善。 科技笼罩下的欲望狂野生长。 黑暗来临,动荡将起! 在这个天色已晚天未亮的世界中, 必然有人提刀换天明! 而在黑暗笼罩下的林清也将会成为其中的一员……作品讲述的是一个走投无路的人向死而生的过程。由于种种离奇的机缘与遭遇,被迫踏上自己从未想象过的奇妙旅程,最终他的命运会是如何?是生?是死?...
滇楚黔秦 灵气复苏:我有个坑爹系统 阴阳幽遇 反派狩猎主角很正常吧 穿越:开局落凤床 论暴发户的自我修养 神斗大陆:崛起 宗虚公子 魂穿之我是雷帝 信鸿战纪 我在地下修真 合成纪元 游走世间 活着成魔 道帝重生 口袋妖怪梦的开始 学霸异世界修仙之旅 人间烟语 末日:最强能力者 帝国路 疯狂猜字游戏破解版 改编版游戏 改变2048数字游戏 服装款式搭配小游戏 疯狂猜字游戏破解版 疯狂的线条游戏 儿童游戏礼品 钢铁巨乳1游戏下载地址 疯狂的免子游戏 钢铁巨乳游戏 儿童游戏迷宫大冒险 儿童认数字小游戏 疯狂建筑师游戏介绍 改编版游戏 疯狂人吧游戏下载地址 服装款式搭配小游戏 儿童游戏礼品 疯狂的免子游戏 公司感恩的互动游戏有哪些 疯狂圆圈游戏 改编版游戏 疯狂炸鱼破解版游戏 公司七夕小游戏 腐女游戏大全 钢铁巨乳1游戏下载 疯狂建筑师游戏介绍 疯狂的免子游戏 公司七夕小游戏 公司感恩的互动游戏有哪些 疯狂的免子游戏 服装款式搭配小游戏 改编版游戏 服装好的销售游戏 疯狂人吧游戏下载地址 疯狂的线条游戏攻略 服装款式搭配小游戏 服装好的销售游戏 改变2048数字游戏 疯狂建筑师游戏介绍 疯狂炸鱼破解版游戏 服装好的销售游戏大全 钢铁巨乳小游戏 疯狂人吧游戏下载 儿童认数字小游戏 腐女游戏大全 改编版游戏 儿童认数字小游戏 服装好的销售游戏大全 疯狂建筑师游戏介绍 钢铁巨乳游戏下载地址 亚星官网 亚星官网 亚星游戏官网 亚星官网 亚星官网 冠宸天下 缚神凌仙 烽动 大恶人系统 重生之闯山海 万利游戏官网 欧博游戏官网 欧博官网 万利游戏官网 快连下载 钢铁巨乳小游戏 疯狂炸鱼破解版游戏 儿童认数字小游戏 改编版游戏 疯狂的线条游戏 疯狂的线条游戏 钢铁巨乳小游戏 钢铁巨乳小游戏 枫之谷在游戏界面登入 儿童游戏礼品 钢铁巨乳游戏 疯狂猜字游戏破解版 疯狂唛吉游戏 改编版游戏 钢铁巨乳游戏下载地址 疯狂建筑师游戏介绍 钢铁巨乳1游戏下载地址 疯狂炸鱼破解版游戏 改编版游戏 枫之谷在游戏界面登入 疯狂的免子游戏 疯狂的免子游戏 改编版游戏 钢铁巨乳1游戏下载 服装款式搭配小游戏 服装设计游戏苹果 钢铁巨乳1游戏下载地址 钢铁巨乳游戏 儿童认数字小游戏 疯狂人吧游戏下载