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
象山县火车票预售点从湛江南到湛江西火车站怎么走象山县火车票预售点重庆石柱到宜昌火车票安徽砀山到济南的火车江西省南昌市去成都的火车票凯里到义务的火车票安徽砀山到济南的火车天水到张家界火车时刻表信阳火车站祁东-广东火车安徽砀山到济南的火车哈尔滨至安贵阳火车时刻表祁东-广东火车从许昌到长葛的火车站信阳火车站天津河西区到北京火车上海-→西安火车上海-→西安火车广州火车站 到松山湖都匀到广州乘坐什么火车快上海-→西安火车天水到张家界火车时刻表江西省南昌市去成都的火车票重庆到遂溪有多少班火车安庆到屯溪有火车吗重庆到遂溪有多少班火车江西省南昌市去成都的火车票广州火车站 到松山湖哈尔滨至安贵阳火车时刻表上一秒还在午休的我 下一秒我睁开眼睛发现一切都变得陌生 我新买没有一个星期的空调呢,没有你我该怎么活 不对,现在我应该在梦里。 可是为什么被打会这么疼 够了,住手。想知道是不是做梦你不会打自己呀 我一脸无语看着刚认识不久的网红小姐姐少年南弦意外获得全能系统,在之后的日子里,从此纵横都市。 需要什么技能,就学习什么技能,让敌人郁闷到死,他就是打破常规的妖孽。 他游走在黑暗世界,灭脚盆,杀猴子,虐棒子,横扫M帝国,让敌人闻风丧胆。身边还有各种美女相伴。林洛本是灵曜国虎将林烈之子,而林家被林烈兄弟赵柯设计陷害,被昏君一纸诏令株连九族。林落逃过一劫,但也被流放到有着‘禁断之地’之称的阎罗小世界中。哪曾想这里是上古神族战场,在这里林落受辱被弃入神魔井中,却获得神族功法《大炎罗》残本,掌握了阎罗小世界进入天璃大陆的关键通道,从此化名洛幽在两个世界里不断成长。 三年之后,林落携着阎罗小世界万千生灵归来,杀小人,灭昏君,诛妖邪,战七国,改天命,逆长生,一统两界......21世纪末期人类在经历了“姆源时代”后大部分工作已经被人工智能取代,“万灵”这款沉浸式游戏应运而生受到全球追捧。 一个在现实世界因为残疾灰心失意的年轻人终于在“万灵”中找到了心灵寄托,可谁知在新版本更新后“万灵”中的人竟再也无法回到现实,游戏中的生死同样决定了现实世界中人的生死...... 万灵之域,七国共域,战火与辉煌,魔法与热血...... 魔窟,鬼洞、深渊......越是探索越发现万灵大有隐秘,被数据表象包裹的诡谲事物下究竟隐藏着什么真相,外星文明的介入又究竟代表了什么?究竟是人类的进化还是异族的屠杀? 妄想成神的人终究要付出代价...... 希瑞尔已是整个宇宙最为强悍的存在之一!无界妖瞳赋予了他洞悉一切奥秘的能力,可他此刻却无法看清身前女子的面容!在那团绝对深沉且有些扭曲的黑暗之中,潜藏的才是整个宇宙最终的宿命!也是他和她之间故事的结局! 姜太公死后进入地府创建了鬼差人间值守制度。 姜云在婴儿时凭借神甲护体,机缘巧合来到地府,被姜太公收为徒弟,从此以鬼的方式,在地府生活了200年,成为第一个人类鬼差。来到人间,体验人类生活,拥有神甲护体的他,以超强的实力杀恶鬼、斗僵尸、战西方恶魔,维护着人间太平。 天界的姐妹凤琉璃和白子婧受天帝的嘱托下凡观察魔族的一举一动,在此期间遇见了千年之狐墨阳轩和贝城轩,双方合作一起除掉魔族,而墨阳轩一见钟情,爱上了凤琉璃,白子婧和贝城轩俩个人日久生情,东海龙王的女儿辰萱晗也请求天帝让自己去帮助琉璃她们,辰萱晗下凡之后一直在帮助琉璃她们解决烦恼,后来,辰萱晗想出去走走,告别了琉璃她们之后就走了,在外的时候意外救了凡间的大将军顾晟,两个人就此开启了瓜葛,姐妹三人在感情的道路都历经坎坷,好在对方都没有放弃和对方在一起,成功地消灭魔族之后姐妹三人分别带着对方回去了 风云起变,万物乔迁。所谓和平,不过是用战争与鲜血换回来的。没有永恒的宁静,也没有永恒的存在。一生只为一个自由而战斗!战歌与鲜血,是历史发展的唯一途径。为何而战?为谁而战?或许最终的答案是尊严与荣耀。自从踏上那一条路,就不要回头,直到登上巅峰!重活一回,开局就被追杀。 纪念凡穿越到乱世,拥有一个已经四分五裂的大炎王朝。 面对这杀戮乱世,是打算醒掌天下权,醉卧美人膝? 还是泼出这身男儿血,引天下英雄尽折腰? 看我纪念凡如何手握乾坤,搅弄风云! 虚拟现实游戏《冷兵器时代》发售,它硬核的游戏设计和相当于现实中地球3倍体积的世界,让它在发售之前就受到了全民的追捧。 当然,地球共和国亚洲区公民朱天云作为一名历史扮演爱好者和历史爱好者,也是毫不犹豫的预定了一台机器,成为了这个世界中的穆拉多伯爵。然而,一个可怕的阴谋,就十分不起眼的隐藏着在这个制作精良的游戏中。 号角震天,群鸦蔽日,军旗招展,长矛林立。 漫天黄沙之中的古拉姆奴隶战士、武艺高强的军事修会骑士、东方草原上弯弓射雕的勇士、寒冷的北国土地上踏着整齐的步伐,昂首挺胸向着前方缓缓推进的重装步兵……战乱不断,血洒战场! 贵族们的尔虞我诈,针锋相对;百姓们的生活不易,民不聊生;士兵们对受封田产、带着累累的战功和数目令人眼红的战利品解甲归田、儿孙满堂、不愁吃喝的美好盼望……一个有血有肉的世界,等待您的探索! 慢热,永不收费,主角会以一个普通人的方式进入游戏,没有不同于他人的方面(包括系统,运气等)
寒门小娇妻 我是一名通灵师 非冒名顶替 鳞妖魇 万界第一皇 我的手指有异能 灵环史诗 生于春,凉于秋 陆天仙帝 全民领主,开局赠送幽都 主角?掌中之物罢了 丛林野兽 闲情自传 隐神山 仙键奇缘 天门计划 征途次元 灵魂大烧烤 横推菊花皇朝 惶恐的我 天水到张家界火车时刻表 呼和浩特 额济纳火车 2018年火车团体票预定时间 从许昌到长葛的火车站 天水到张家界火车时刻表 天津一邹城的火车 哈尔滨至安贵阳火车时刻表 祁东-广东火车 都匀到广州乘坐什么火车快 阜新--济南 火车 凯里到义务的火车票 火车黄泥河到安图 青岛至伊宁火车票 呼和浩特 额济纳火车 江西省南昌市去成都的火车票 安徽砀山到济南的火车 哈尔滨至安贵阳火车时刻表 都匀到广州乘坐什么火车快 达州到凉山火车 象山县火车票预售点 呼和浩特 额济纳火车 广州火车站 到松山湖 从湛江南到湛江西火车站怎么走 济南到云南火车有到哪里的 上海-→西安火车 青岛至伊宁火车票 都匀到广州乘坐什么火车快 从湛江南到湛江西火车站怎么走 达州到凉山火车 都匀到广州乘坐什么火车快 安徽砀山到济南的火车 呼和浩特 额济纳火车 兰卅至喀什火车票 象山县火车票预售点 宜昌火车站几点停止售票 安徽砀山到济南的火车 兰卅至喀什火车票 2018年火车团体票预定时间 青岛至伊宁火车票 广州火车站 到松山湖 重庆石柱到宜昌火车票 打印过期火车票 成都火车北站到广元的火车 火车黄泥河到安图 济南到云南火车有到哪里的 呼和浩特 额济纳火车 火车黄泥河到安图 重庆石柱到宜昌火车票 安庆到屯溪有火车吗 徐州至北京火车时刻表动车 亚星官网 亚星官网 亚星官网 亚星官网 亚星游戏官网 乾坤修法录 繁华的守护者 九段妖孽慕薄渊 神豪:我呼吸就赚钱 重构代码世界 AG真人 欧博官网 亚星管理平台 AG真人 百家乐官网 成都火车北站到广元的火车 凯里到义务的火车票 安徽砀山到济南的火车 宜昌火车站几点停止售票 打印过期火车票 打印过期火车票 安庆到屯溪有火车吗 成都火车北站到广元的火车 天津一邹城的火车 重庆石柱到宜昌火车票 江西省南昌市去成都的火车票 上海-→西安火车 凯里到义务的火车票 江西省南昌市去成都的火车票 从许昌到长葛的火车站 哈尔滨至安贵阳火车时刻表 广州火车站 到松山湖 从湛江南到湛江西火车站怎么走 江西省南昌市去成都的火车票 成都火车北站到广元的火车 徐州至北京火车时刻表动车 徐州至北京火车时刻表动车 象山县火车票预售点 广州火车站 到松山湖 安庆到屯溪有火车吗 成都火车北站到广元的火车 兰卅至喀什火车票 安徽砀山到济南的火车 上海-→西安火车 达州到凉山火车