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
绍兴中铁快运电话凌原监狱电话西宁物流公司电话号码查询郑州普洛斯物流园电话昆山物流电话绍兴中铁快运电话安吉佳吉物流电话西宁物流公司电话号码查询孝感全峰快递电话启东佳吉快运网点电话查询佳吉莆田涵江电话绍兴中铁快运电话临朐德邦物流电话锦州佳吉物流电话西宁物流公司电话号码查询启东佳吉快运网点电话查询砚山EMS快递联系电话佳吉快运加盟电话佳吉快运加盟电话佳吉物流重庆网点电话虞城佳吉物流电话号码佳吉快运加盟电话孝感全峰快递电话方泰五金厂佳吉物流电话昆山物流电话灵山镇新沙村电话号码郑州普洛斯物流园电话顺丰快递遵义电话青海省互助县邮编电话临朐德邦物流电话“这万千宇宙,也该定定了。”邵朝阳仰面望着那广阔的无尽星空,心中无限感慨,“可是,我不想再管了。”邵朝阳转过头去,望着身后白衣如雪,宛若天仙的上官靖雪,笑了笑,“就让我,任性一回吧。” 家中出现的倒斗工具,亲人的失踪,带有线索的照片,一切的一切都将吴迷引进了一个巨大的迷局当中。 于是,他通过夹喇嘛的方式入墓寻找更多的线索,谁也没想古墓之中竟有如此之多诡异离奇的事:鬼藤、东夏神尸、化蛟……如果人生还有的选择,我又何必这样?诡异不明的感染,来历不明身怀多项意想不到技能的教师想在这末世中带着他的学生们活下去。陈先生请问末世的背后到底是什么在推动跟你有关系吗?你是怎么带着你的学生们活下去的?责任越大能力越大吗?做这么多得罪人的事不会怕吗?陈翡抠了抠鼻孔说:“你谁啊你?我只想保护我自己和那帮兔崽子们努力活下去,仅此而已。”诸位!可曾想过神话中的天庭真的存在?如果没有,那么请来我的九州大陆一观之!或许在下文笔不彩,然其故事定是拔萃!废言少语,诸君——请入局! 九州大陆大宋年间,灾乱频发,百姓困苦。大宋内有复唐势力捣乱,外有异族强敌环伺,可谓是危机四伏!恰此时,有君邱氏逆转时空,重返大宋,为往圣续绝学,为万万汉民开太平! 诸君请看!那玉宇琼楼之中、那凌霄宝殿之内、那灿烂金椅之上——是你的身影!在唐僧师徒四人成圣之后。百年后,人间的邪教与冥界沟通准备推翻仙界,并重新的创立一个新的世界与秩序。而这时悟空与另三人踏上了一场“路途”。如果知道那是最后一次见你,我一定不会让你离开 樱花树下的约定,是故事的开始;他永远的失去了她,却意外穿越了平行时空,来到俩人最初相遇的时候,与此同时;以前的自己也来到了以后,一个完全陌生的世界。 事情会发生什么改变呢?历史是否还会重来,一切都拭目以待。混沌初开天道始,万族林立生者适。天道如海唤天堑,踏海征途道之巅。 ——洛尘兮 世间万物皆修行,道俱万千谁能赢。百花齐放争天地,唯有强者动乾坤。 ——黄梦燃 天堑海之巅,道祖洛尘兮与仙祖黄梦燃为道统之争一决胜负。最终洛尘兮技高一筹,将黄梦燃打下天堑海之下。自此天堑海上再无仙祖黄梦燃之威名,殊不知这只是黄梦燃借此达到他计划的第一步——重生!“恭喜宿主抽到物品绿巨人血清。” 我踏马,这个牛背啊,作为漫威十年老粉,对绿巨人可谓是极其深刻,尤其是那个回眸一笑,不由得就想起一张动图,让人不寒而栗。不是吧,我居然重生了,老天爷,你重生也不打个招呼,让我准备准备,就这么硬来真的好吗,我一个没学历没特长的普通人,你让我重生干嘛,再重活一次吗,你可包(别)跟我开玩笑,我心脏受不了。 系统呢,这不是重生跟穿越者的标配吗,怎么到我这儿就什么都没有了,诶,不对,还有个手机。看着手机里那些自己以前有意无意存起来的图片和小说,林文总算是长出了一口气,后半辈子总算是有保证了。 既然重生了那就要活的潇洒,自在,快活。把以前想干不敢干的都干了,把以前干了但是留有遗憾的给弥补了,总之活的爽就对了。 全球首富不用想,全国首富也够呛,有老马小马和老王在前面顶着,但是全省首富这个名号林文觉得自己还是可以争取一下的。 总之,这就是一个普通人靠着重生带来的手机,东一榔头,西一棒槌挣钱的故事。
娘胎签到:全世界都在阻止我出生 恶魔天 因山之名 古神说:混沌篇 欢迎来到我与胜者的游戏 二狗人生 携鬼修仙 拂水龙吟凤梧扬 修炼王国2 我,大奸贼,卖女帝怎么了 法医的秘密 死神的名义 星河版图 生计银 都市修仙,你们练武的也配 走错厕所被女教授给揍了 洪荒:赠送九转金丹,返还百亿功德 妖孽小村医 无敌保护系统 彼岸可有花 云南大理州海东镇劳动督察电话 福建泉州惠安佳怡电话? 砚山EMS快递联系电话 佳吉快运加盟电话 云南大理州海东镇劳动督察电话 南通佳吉物流电话 无锡佳吉投诉电话 义乌佳吉物流电话号码 灵山镇新沙村电话号码 临朐德邦物流电话 孝感全峰快递电话 孝感全峰快递电话 方泰五金厂佳吉物流电话 启东佳吉快运网点电话查询 兰州佳吉物流电话号码 昆山物流电话 无锡佳吉投诉电话 灵山镇新沙村电话号码 虞城佳吉物流电话号码 绍兴中铁快运电话 福建泉州惠安佳怡电话? 西宁物流公司电话号码查询 凌原监狱电话 锦州佳吉物流电话 启东佳吉快运网点电话查询 方泰五金厂佳吉物流电话 灵山镇新沙村电话号码 凌原监狱电话 虞城佳吉物流电话号码 灵山镇新沙村电话号码 昆山物流电话 福建泉州惠安佳怡电话? 郑州普洛斯物流园电话 绍兴中铁快运电话 方泰五金厂佳吉物流电话 昆山物流电话 诸暨市佳吉物流电话 无锡佳吉投诉电话 方泰五金厂佳吉物流电话 诸暨市佳吉物流电话 昆山物流电话 佳吉物流厚街电话 佳吉物流重庆网点电话 圆通大悟客服热线电话 锦州佳吉物流电话 福建泉州惠安佳怡电话? 孝感全峰快递电话 郑州普洛斯物流园电话 青海省互助县邮编电话 安吉佳吉物流电话 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 奥传之绝世武神 综漫从和五河士道抢妹子开始 寡酒淡茶 雷之神a 启灵之师 百度 百度 百度 百度 百度 凌原监狱电话 启东佳吉快运网点电话查询 临朐德邦物流电话 虞城佳吉物流电话号码 淮安佳吉物流电话 义乌佳吉物流电话号码 砚山EMS快递联系电话 诸暨市佳吉物流电话 方泰五金厂佳吉物流电话 郑州普洛斯物流园电话 圆通大悟客服热线电话 安吉佳吉物流电话 孝感全峰快递电话 方泰五金厂佳吉物流电话 虞城佳吉物流电话号码 孝感全峰快递电话 义乌佳吉物流电话号码 新河佳吉物流电话号码 淮安佳吉物流电话 灵山镇新沙村电话号码 无锡佳吉投诉电话 淮安佳吉物流电话 孝感全峰快递电话 佳吉快运加盟电话 佳吉莆田涵江电话 锦州佳吉物流电话 虞城佳吉物流电话号码 圆通大悟客服热线电话 凌原监狱电话 兰州佳吉物流电话号码 亚星官网 亚星官网 万利官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网