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
郑州营销小公司网络信息安全实例陕西信息网络安全协会宜兴网站建设北京大学信息安全学院北邮 信息安全 国家线2015信息安全报告昆明响应式网站信息安全策略管理全国专业信息安全服务资质,-1段白云生来无缘仙道。 一句谣言,一朝灭门。 流落到云峰大陆的段白云机缘巧合开启了修仙之路。 他拿着万众执念的东西重回天洲,又将那东西摔落泥泞。 段白云:我就要以我废材之名告诉他们,不是什么人都能够飞升成神!荒古四凶兽,饕餮、穷奇、梼杌、混沌!  荒古四神兽,青龙,白虎,朱雀,玄武! 以及荒古瑞兽麒麟,齐聚龙渊脑海的神台之上。 在它们身后,竟然还拉着一尊神秘的铜棺! 铜棺苏醒,龙渊获得无上传承,开启逆天神藏。 从此,他驾驭九尊荒古巨兽,化身万界之王,踏平无尽神域。 诸天万界,漫天神佛,无不望风而逃,丧胆销魂!人生不止有眼前的苟且,仔细看,还有更远的...... 读者群:913285821穿成一品镇国公府嫡子,谢勋以为从此金银花不尽,俏丫鬟环绕,袭爵,安安心心当纨绔。皇帝一道圣旨,他成了当朝红人,皇子拉拢,公主倒贴,却不知,危机就在眼前……时间长河若有尽头,我只看一眼,便回来找你。 哪怕武道极致,哪怕商道极致,只为那一句承诺。 什么《经商十年算法》,什么《武道十段成神》。 与我而言,倘若与你无关,便是浮云。  1987大年三十,母亲出走,父亲被打残废,颓废的三十年转瞬即逝。   意外回到三十年前,张旭要一手扛起本应支离破碎的家庭。   每次他都能把握市场风向,从摩丝到BP机,从实业到互联网,他才是真正的商业教父!   别人跟着历史车轮滚滚往前,而他已经站在终点! 最坚固的城墙,还请来神仙护国。试问有何种矛可以破城? 黄金大陆上的天兴国,百万人口大城,即将面临百年一遇的劫难。重金请来修仙者来守护这高大的城墙。城墙坚固武器豪华,只是这神仙护国师面对的劫难和强敌也是世上罕见的。修仙者在两年内力保城墙不破除,将会渡过天劫直接修练成仙。如果在守护城墙过程中,不敌外敌,那么也将和城墙一起化为灰烬。更可怕的是,城墙内部还有各种势力想要破坏这座坚城。 黎伶曾见过死而复生的人,她也希望成为那样的人,唯有超越死亡的束缚,才能拥抱无尽的幸福。 不过啊,不凋花仅是一场梦,而一场梦,终究是徒生花。剧情接着《勇者》、《超能战士》。2014年9月,ME如愿地考上了重点高中。更想不到的是,在新学校中他跟过去的所有伙伴都重逢了。轩影、电紫更是成为TFL36的导师,每天指挥着ME他们训练……30多人齐冒险,将会发生什么趣事?绝世狂龙重出牢笼,横行四海。 翻手为云覆手为雨,万千枭雄沉浮脚下,都市人杰退避三舍,敌国精锐消声灭迹,各方势力偃旗息鼓。 娶女战神为妻,灭敌手于江湖,驰骋官商两界,山高人为峰,世间我为王。
中国网络安全监管 项目营销策略模式 浙江省信息安全行业协会 互联网营销培训 营销策略中的价格策略 陕西信息网络安全协会 婚纱网站模板 信息安全产品分类 有利于优化的网站模板 微博营销形式 网络安全内容大全 网站建设程序开发 营销型网站推广 酒泉网站建设 京网站制作公司 搜索引擎营销是 网站转换率 信息安全策略管理 网站转换率 郑州市公安局信息网络安全报警网站 中国电信网络安全产品办公室网络安全风险 网站制作公司排行榜 半成品网站 中国电信网络安全产品办公室网络安全风险 网络安全攻击行为分析 计算机信息网络安全服务资质 互联网营销运作网络安全零基础 负面营销模式 免费网络安全培训课程 如何打造网站 企业网站怎么建站 网络信息安全公司的售后 全国专业信息安全服务资质,-1 网络安全意见建议 微信seo全网营销 绍兴网站建设公司 网站内容维护 信息安全产品分类 广州购物商城网站开发 美国网络安全法 中国网络及信息安全法 银行信息安全等级保护,-1 仿建网站 网络信息安全实例 京网站制作公司 信息安全监管 信息安全监管 免费网站建设 百度一下 互联网信息网络安全技术保护措施 郑州营销小公司 网站设计尺寸 企业b2c网络营销战略 婚纱网站模板 中国信息安全法研究中心 2017网络安全企业 怎样申请网站关于计算机网络安全证书介绍 网站设计公司长沙 高端广告公司网站建设 小米手机网络营销战略 信息安全 风险 合规 大数据信息安全法律法规 官网营销 网站建设公司平台 网络安全准入方案 信息安全基线规范 网络营销产品特点 合肥大型网站制作公司 负面营销模式 vpn与网络安全pdf 小米公司内容营销分析 北大 信息安全实验平台 免费网络安全培训课程 全网营销的优势 网络营销一般学多久 合肥网站建设 项目营销策略模式 信息安全 监控,-1 网站宝建站 网站宝建站 中国联通 信息安全 互联网营销运作网络安全零基础 网站建设计划书 网站飘动 全网整合营销公司 网络安全 新闻 手机网站建设 国家信息安全服务资质查询 郑州市公安局信息网络安全报警网站 免费建网站系统平台 提供商城网站制作 重庆企业口碑营销 事件方面的营销举例 项目营销策略模式 政务网站开发 企业网站推广优化 网络信息安全网站 推广营销宣传方案 深圳建立网站 建设门户网站需要注意什么 网页营销qq 清华信息安全实验室 长沙企业网站建设团队 信息安全保密专业大学 中国网络安全监管 怎样申请网站关于计算机网络安全证书介绍 香港网络安全中心 网页营销qq 网站建设程序开发 营销外包费用 信息网络安全 法规 信息网络安全 法规 国家信息安全服务资质查询 高端广告公司网站建设 长沙网站优化 组合营销 第四届网络安全 网络营销产品策略 陕西信息网络安全协会 定制网站制作广州微信营销班 网络信息安全防护措施 唐山网站搭建 互联网信息网络安全技术保护措施 长沙电子商务公司网站制作 柳市做网站 网站建设程序开发 广东省信息安全认证中心 网络信息安全培训班 酒泉网站建设 互联网营销培训 建设门户网站需要注意什么 搜索引擎营销是 我与网络安全 关于信息安全的图片 信息安全策略管理 江门网络营销外包公司 国内ui网站有哪些 郑州市公安局信息网络安全报警网站 计算机网络安全评价 网站设计技术 以网络安全为主题文章 企业网站推广优化 中国联通 信息安全 中国网络信息安全联盟 营销的类别 微博营销形式