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
title:网站制作公司 powered by dedecms网站的内容互联网营销和策划方案深圳市移动端网站建设360网络安全大学营销产品定价策略信息安全资质包括哪些网站的内容网络安全 系统安全信息安全要考什么证历史给人的唯一教训就是人们从未在历史中吸取过任何教训!!!秦缘穿越到全民模拟人生的世界: 如果改变人生轨迹打破人生限制,可以成为人上人;如若失败,只能当个寿命只有五十多岁的下等人,终生贫苦。 毕业典礼:觉醒贤者。 贤者模式:可以推演一切。 模式时能力越强,推演越详细,成功率越高。 一世:【重生末世,觉醒超级异能,二十岁基因变异死了。】 “贤者模式开启,推演抑制基因变异的方法。 【你攻克基因突变,成为世界主宰,拯救人类开创修仙科技时代,寿终正寝。】 【模拟结束:贤者模式增强一倍、你获得三滴龙血、你获得灵米提供资格、你获得一次模拟机会、你获得......】 某世:【18岁的你,被女帝逼婚,虐待致死。】 “贤者模式开启,推演征服女帝方法。” 【女帝唱征服,获得最高评价。奖励:阴阳锻体决、获得….】 同届新人,纷纷成为普通人,苟延残喘。 此时:异族入侵基地时。 秦缘站出来,扮演异能强者,持仙法只手遮天。 这天: 异世入侵主世界。 秦缘仅仅一句话,万族臣服。 “怎么?征服不够,想被灭世?”异界之中,宗门无数,强者林立,却受天道制裁,在天之下却无发比拟天道,在天道之下,我陈逸却要这逆天而行。 疫情期间,世界领先的AR平台科技公司完美世界的首席技术官吴飞凡被人从他小学同学所开的咖啡厅带走,于此同时,完美世界公司位于临近城市的神经传导实验室老总刘爽也告失踪。 警方经过推理分析发现犯罪人策划这两起事件是为了抢夺完美世界源程序以及该公司正在开发的乐土项目所做出的绑架案件。夕阳西下,几只海鸥从海上飞过,被金色渲染的沙滩上有两人互相看着,沉默不语。 一人黑衣,一人白衣。时间好像静止了一般。 许久之后,白衣开口打破了之间的寂静:“我觉得,还是你错了”黑衣听愣了一下,好像很轻松的说:“这是自然嘛,你为了你的理想,我为了我的理想,我们都不知道对方干什么,却都说什么都支持对方,到最后才发现对方竟然是自己的对立面,自然是觉得对方错了嘛”说到最后才发现时语气却多了分伤感,凄凉。“那,那你来这里干什么?”“这里是,是梦开始的地方啊” …… 最后只听见白衣说:“明天我不会留情” “我也一样”穷且意坚,不坠青云之志!身为一代赘婿,他肖天明有自己的坚持,有自己需要守护的家人,当老婆于危难之际,自当奋不顾身,全力以赴!世界崩坏,风云将起。各方涌动,群雄四起。这个世界怎么了,谁又可终结一切? 天之道,损有余而补不足。人之道则不然,损不足以奉有余。 星辰所赠,究竟是礼物,还是诅咒? 在异能流行的世界中,源明空明明觉醒了异能,成为了1/500的存在,却根本无法使用异能。 直到异能觉醒的5年后,赴约路上的源明空遭遇了一场“主角专供”车祸,并获得了痛苦烙印。从此,他开始使用异能,并和一位总是与他吵吵闹闹的少女一起解决种种问题。
哈工程信息安全实验室 网站建设渠道合作 移动营销主要的优点 国际网络安全问题 公用网络安全审计 天津网站制作公司 手机短信营销方案 信息安全资质包括哪些 服务好的微网站建设 信息安全策略实施方案 信息安全等级评测师 2017年信息安全大会 网站代运营公司 营销综合管理首页 上海网网站建设 营销团队的介绍 做网站一般用什么语言 html5网站 怎么给网站添加站点统计 网络安全硬件平台提供商 信息安全等级保护代办 网络与信息安全第三版 世界 网络安全 公司 建设手机网站包括哪些费用吗 深圳 信息安全培训课程 网络安全 系统安全 信息安全等级评测师 2017年信息安全大会 网站代运营公司 营销综合管理首页 上海网网站建设 营销团队的介绍 做网站一般用什么语言 html5网站 怎么给网站添加站点统计 网络安全硬件平台提供商 信息安全等级保护代办 网络与信息安全第三版 世界 网络安全 公司 建设手机网站包括哪些费用吗 信息安全文章 佛山网站建设的首选 宝安网站设计云南网站设计 信息安全测评中心 绿盟,-1 信息安全测评中心 绿盟,-1 宝安网站设计云南网站设计 wap手机网站 深圳 信息安全培训课程 我对网络营销的认识 信息安全eal3 免费营销软件下载 网络安全 产业南宁建网站 信息安全风险评估小组每人了解且熟悉如何对此类文档收集整理 网络安全开发工程师 深圳市网络安全公司 怎样自己创造网站 营销综合管理首页 网络安全实验室综合关 公安部第三研究所信息安全技术处 网站代运营公司 吴忠网站建设 营销产品定价策略 你自己的计算机上网遭受网络安全威胁时你是怎么做的? 互联网营销精髓 网站建设渠道合作 汽车有哪些信息安全 深圳企业网站公司 全网营销服务有限公司 安徽省信息安全测评中心招聘 常用的信息安全技术""是哪几种?" 信息安全eal3 营销销售 信息安全策略实施方案 胶州做网站 信息安全化 网络营销适合的年龄段 信息安全发布 立夏 热点营销 网站代运营公司 美国网络安全战略 全国信息安全等级保护测评机构推荐目录,-1 常用的信息安全技术""是哪几种?" 信息安全测评中心 绿盟,-1 佛山网站建设的首选 信息安全资质包括哪些 衡水企业网站设计 长沙网站设计开发 欧美风格网站设计 南通营销网站建设 网络安全 系统安全 网络营销的优点是什么?优秀的网络媒体应具备的条件是什么? 网络安全前景2017 html5网站 安阳做网站 网络安全服务攻击 学校网站开发 国家安全网络安全 casb 网络安全 网络安全技术是 深圳官网网站建设 你自己的计算机上网遭受网络安全威胁时你是怎么做的? 手机短信营销方案 网络营销师的培训机构 病毒式线上营销方案 立夏 热点营销 网络安全 产业南宁建网站 网络安全平台电话 重庆整合营销的公司 信息安全eal3 信息安全包括数据安全和 中国网络安全信息中心 网站建设学习 重庆整合营销的公司 网站代运营公司 佛山本地的网站设计公司 移动营销主要的优点 网站代运营公司 免费营销软件下载 我对网络营销的认识 13日中国网络安全大会 衡水企业网站设计 全网营销服务有限公司 张长河 网络安全 信息安全策略实施方案 网站与与云的关系 国家网络安全研究院 营销综合管理首页 南阳手机网站建设 信息安全连续性 网络营销适合的年龄段 网络安全举办了几届 大型网站设计方案 如何提高网络营销ar值 赤峰网站建设 创建网站 张长河 网络安全 信息安全是指保护信息的 网络安全误区 专注信息安全 网络安全开发工程师 湛江有那些网站制作公司 网站组建 新网站建设平台 西安做网站 网络安全开发工程师