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。 叮,三星灵兽,灵气+10w。 叮,噬灵蛊虫,灵气+30w。 拥有系统的他升级如喝水,但随着实力的提升,一桩桩危机如雨点般扑面而来。 什么?你是至尊武帝?抱歉,我打的就是武帝! 啥?你说你御兽千万,一个人就是一支军队?不好意思,那这些灵气,我就勉为其难的收下了!! 意外穿越异世,别人成仙成佛,惨点的也是废物逆袭。 可是到了古二蛋这里,他却发现自己一点盼头也没有。 因为这家伙成为了一个骷髅兵!还是一个没有脑袋的下等残躯战损版骷髅兵! 生活不易,骷髅叹气,望着自己一两肉都没有的身体,古二蛋决定要逆袭给所有人看! “金手指系统!我要称王称霸!给我发威!” “收到宿主期盼,本系统已按照期盼进行修改,正式进化为骷髅领主系统,你可以通过收集资源来强化麾下士兵啦!而且是没有上限的强化呦!” “哦?这么厉害的吗!那么这种能力也能作用到我的身上对吧!” “…………” “对吧?” “…………” “对吧?!!!”mc方块人的一生,很无聊
阴阳殇2传 魂咒孽缘 符镇天下 虚拟狩猎 质子之危 护客人 雷渊修罗 圣穹寂 祖龙之世 三色玫瑰 人族逆天路 这不是个养成游戏吗? 裔魁 江湖有你才有传奇 一个陌生男孩的来信 金牌打鬼人 重生:火热1990 最后的落日川 阴差救父 玩家太凶猛 狗狗持续呕吐的原因 柯基狗狗怀孕表现图片 老年狗狗尿失禁 金毛狗狗吃什么能长胖 狗狗持续呕吐的原因 狗狗抽搐是什么样子的 老年狗狗突然大量喝水 可爱搞笑的狗狗图片大全大图 狗狗抽搐叫唤怎么回事 快生的狗狗肚子有多大 两只狗狗打闹是亲热吗 两只狗狗打闹是亲热吗 狗狗抽搐吐白沫怎么治 柯基狗狗怀孕表现图片 狗狗出去了晚上没回来 金毛狗狗生产症状 两个月的狗狗嘴巴臭 狗狗抽搐叫唤怎么回事 狗狗吃煮鸡蛋的作用 狗狗出去溜有跳蚤 金毛狗狗怀孕多久生 转让的狗狗会过的好么 狗狗吃煮鸡蛋的作用 金毛狗狗的正常体温 可爱搞笑的狗狗图片大全大图 狗狗抽搐吐白沫怎么治 狗狗抽搐叫唤怎么回事 狗狗吃煮鸡蛋的作用 狗狗吃猪骨头便血 狗狗抽搐叫唤怎么回事 金毛狗狗吃什么能长胖 金毛狗狗怀孕多久生 金毛狗狗取名字带财运 狗狗出去溜有跳蚤 狗狗抽搐吐白沫怎么治 金毛狗狗生产症状 家里狗狗老发抖 老年狗狗突然大量喝水 狗狗持续呕吐的原因 狗狗出车祸内出血症状 狗狗出去溜有跳蚤 金毛狗狗分娩前 狗狗抽搐是什么样子的 老狗狗突然站不起来了 金毛狗狗取名字带财运 金毛狗狗生产症状 老年狗狗后腿站不起来 狗狗出去溜有跳蚤 狗狗抽搐叫唤怎么回事 可以给狗狗吃粥吗 亚星官网 亚星官网 亚星游戏官网 亚星官网 亚星官网 初中一些趣事 江湖有你才有传奇 掌中之剑 浪漫收藏家 万利游戏官网 欧博官网 皇冠登3出租 万利官网 快连下载 可爱搞笑的狗狗图片大全大图 两只狗狗打闹是亲热吗 可以给狗狗吃粥吗 金毛狗狗怀孕多久生 老狗狗突然站不起来了 狗狗出去溜有跳蚤 金毛狗狗取名字带财运 转让的狗狗会过的好么 老年狗狗突然大量喝水 快生的狗狗肚子有多大 老年狗狗突然大量喝水 狗狗抽搐是什么样子的 狗狗抽搐吐白沫怎么治 老年狗狗突然大量喝水 金毛狗狗怀孕多久生 狗狗抽搐吐白沫怎么治 狗狗出去了晚上没回来 狗狗出车祸内出血症状 狗狗吃煮鸡蛋的作用 两只狗狗要两个厕所吗 转让的狗狗会过的好么 可爱搞笑的狗狗图片大全大图 老狗狗突然站不起来了 快生的狗狗肚子有多大 金毛狗狗生产症状 狗狗持续呕吐的原因 狗狗抽搐吐白沫怎么治 金毛狗狗吃什么能长胖 金毛狗狗的正常体温 金毛狗狗生产症状