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
怎么做微网站信息安全测评中心主任成都网站设计网站策划机构重庆微营销公司哪家好中山专业网站制作网站开发团队人员东莞网络营销与传统市场营销相比自己做网站 需要哪些现在还有多少人知道“满城尽白发,不敢忘大唐”的安西军,仅仅一万多人,他们在内无粮草、外无援军的情况下孤守西域四十多年,哪怕面对人数几十倍的敌军,誓死守护每寸河山 裴松之注下“行法严而国人悦服,用民尽其力而下不怨。及其兵出入如宾,行不寇,刍荛者不列,如在国中。其用兵也,止如山,进退如风,兵出之日,天下震动而人心不忧”,被魏书中记载“若此人不亡,终其志意,连年思运,刻日兴谋,则凉雍不解甲,中国不释鞍”的诸葛武侯,被人说只是个政治家,不配武庙十哲 历史上唯四的百人斩之一的杨再兴,我们都知道岳飞精忠报国,项羽神勇无双,又有几人记得杨再兴小商河一战,三百对阵十二万,阵斩两千! 对正史上唯一一名被单独列传的女将军 秦良玉,几乎没有人知道,远没有基于部分人物原型改编的戏剧、小说人物穆桂英、花木兰为人铭记,人家秦良玉才是真正的巾帼英雄! 诗仙李白的出生地碎叶城位于现在的吉尔吉斯斯坦境内,难不成李白不是中国人吗! 轮回新生,绝世帝仙为了追求更高的境界,不惜动用整个星球的力量,破碎虚空,不料天外有天,含恨败退.……于是委身下界,积蓄仙气……仅以此小说,献给那些被双重人格支配的怜人那一年,横推八百无对手,轩辕重出武圣人但是无敌! 那一年,飞天魔女龙云凤还没出现! 那一年,细脖大头鬼的鼻子还在! 那一年,九尾妖狐陆素珍已经变坏! 那一年,玉面小达摩还没,浪起来! 高二的时候学校校花莫名其妙的说我是她对象,害的我被学校大哥给盯上了…… 有一种孤独是,心心念念着一个人,却没有她的联系方式,如果最后是你啊,晚一点没关系。我叫路森尧,我的故事 从高二开始。《叱咤沙场》是一篇短篇职场小说,俗话说商场如战场,且看磁4的lily 如何从助理到单人年业绩1200万美金,并带领团队杀出重围,走过经济危机的低谷。 何须问,浮生情,原知浮生是梦中。 花落花开,人死只是重生的开始。 广袤无垠的具象大陆,具象者们,打通三脉七轮,修炼着脉气。 根轮开,红莲绽放,具象现: 腹轮开,橙莲绽放,具象量变: 脐轮开,黄莲绽放,变化现: 心轮开,绿莲绽放,生命现: 喉咙开,蓝莲绽放,灵性现; 额轮开,紫莲绽放,智慧现: 顶轮开,千瓣莲花,彩虹现。 红十具象师,橙百具象师,黄千具象师,灰迷具象宗师,绿生宗师,蓝灵宗师,紫归宗师,彩虹尊者。 生命之花,如此璀璨,如果可以,我愿奉献!我是一个老千,为了报仇,我坐上赌桌,以千术把仇人踢进赌博的深渊。老千生涯,靠赌为生。三教九流,江湖百态。 赌桌上,没有常胜将军,输一次,万劫不复。艾莫在18岁生日那天失去了全部武功,为了找到破解的方法,他踏上了去迷幻森林寻找宝塔的旅途,并遇上了女主人公路梦……【江湖+鉴宝+盗墓】我从小没上过学,跟着一位漂亮女人学了十年手艺。十年时间,她锻造了我一对“鬼眼”,辨识天下奇珍异宝。练就了我一双“佛手”,破局下套横行无忌。教会我一身“神技”,从容玩转江湖乾坤。 我用多年来在古玩江湖摸爬滚打的亲身经历,告诉大家一个颠扑不破的真理:古玩不是玩古,而是玩人!
营销推广服务 全网营销网 深圳网站制作公司资讯 网络与信息安全等级 网络营销的国内外研究 企业整合营销公司 东莞网络营销 小企业信息安全管理软件 病毒是营销 2016年429网络安全 微博营销内容怎么写 三星营销手法 西安论坛网站制作维护 网络营销的缺点有哪些 网络营销的缺点有哪些 汽车营销策划的案例分析 移动信息网络安全汇报 湖州做网站 温州微网站制作公司电话 湖南营销型网站建设 自学网营销运营 网络安全防范技术 网络安全治理的复杂 信息安全 活动视频,-1 信息安全测试平台 网络与信息安全等级 信息安全管理体系的三权分立 赛事化营销 开设购物网站的方案 病毒是营销 网站制作的趋势网站设计的评估 商贸行业网站建设公司 网站费用单 网络信息安全风险评估 网站策划机构 营销型企业网站 网络安全审计技术 2016年429网络安全 营销网站与传统网站的区别 大连网络营销策划公司电话 广东省网络安全应急平台 网站结构 内存信息安全 天津高端网站建设 房地产网站建设解决方案 微信群营销的推广方式 计算机信息安全等级划分准则,-1 比较常见的信息安全技术不包括 网络安全测评机构 北京网络安全与维护培训班 北京网络安全与维护培训班 小米手机网络营销预算 珠海网站推广 三星营销手法 东城网站设计 网络营销运营部 网络安全体系要求 网络营销能力秀词条 西安论坛网站制作维护 昆明网站建设多少钱 qq群营销的特点 网站开发团队人员 网络营销实战课程下载 信息安全培训目标是 信息安全管理暂行办法 国家网络安全的案例分析 网络营销的缺点有哪些 淘宝常见营销手段 网络营销的国内外研究 营销推广服务 汽车营销策划的案例分析 国内网络安全公司介绍 小企业信息安全管理软件 网站费用单 移动信息网络安全汇报 网站设计公司北京 网络营销专业书籍 国家信息安全局网站 seosem营销案例 网络推广微信营销公司 企业实战网络营销 温州微网站制作公司电话 温州微网站制作公司电话 西安论坛网站制作维护 电子邮件营销优缺 什么叫做网站维护 病毒营销的注意事项 信息安全的层次化特点决定了应用 信息安全专家人物 信息安全管理体系审核 怎样给网站换空间 重庆网站建设公司那好 自助建网站 病毒是营销 网络安全防范技术 大连网络营销策划公司电话 重庆知名网络营销公司 网络安全监管新闻 网络安全治理的复杂 网络营销编辑是什么 北京网络营销运营 网站重建 网站设计建设趋势 信息安全 活动视频,-1 网络与信息安全 网络信息安全面临的威胁 信息安全测试平台 高端的网站网络信息安全周,-1 网站策划机构 昆明网站建设多少钱 医疗服务营销策划 网络与信息安全等级 企业信息安全管理 执行 建大网站重大信息安全事件包括 北京信息安全协会 网站设计公司北京 怎样给网站换空间 沈阳做网站 与传统市场营销相比 国家信息中心信息与网络安全部 2015网络安全会议 瑞星:2013年上半年中国信息安全综合报告 深圳网站外包 开设购物网站的方案 成都 做网站 模版 张北网站建设 对营销要求 病毒是营销 汽车营销策划的案例分析 信息安全测试平台 简述网络安全的目标网络安全威胁类型 gb/t 20984-2007 信息安全技术 信息安全风险评估规范 天津高端网站建设 中山专业网站制作 马鞍山网站设计 信息安全培训目标是 信息安全专家人物 可信网络安全 网络安全品牌 网站费用单 重庆微营销公司哪家好 自己做网站 需要哪些 互联网营销调研 网络信息安全风险评估 情感营销 3个c 企业整合营销公司