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
营销型网站技术特点rss营销的作用多边形网站营销式网站网络安全宣传周意义网络安全防火墙论文中国网络信息安全组长网站的标准公司网站非响应式在线营销郑州做网站的外包公司少年心里是江湖风云,侠客胸中有家国天下。 一位现代企业家,带着现代记忆来到了一个名为“大乾”的朝代,厌倦了前世商场上的勾心斗角尔虞我诈,原本想在这个不知名的朝代平平淡淡的过完这一生,没曾想来到古代后,他依然面对着家族里的勾心斗角…在这个人为刍狗的世界,他该如何生存与立足?豺狼当道,虎豹环视,一招不慎,便是万劫不复;心不狠,站不稳,杀伐果断,只为无上权力。云云众生,草根人物,命运多殂,应何以为之?何以搏之? 滚滚的历史长河,浩如烟海的典籍,人神鼻祖,帝王将相,先贤哲人,无不树碑立传,著书立说,话其伟绩。然而,蝼蚁草芥经历了怎样的狂风暴雨,遭受了何等的苦难辛酸,亦或是又品尝了那些快乐幸福,少有问津,甚是惨淡。今攫取其中的颗粒,让芸芸众生在茶余饭后,闲暇无趣之时,偶尔翻翻,聊以打发寂寞的时日,慰藉空虚的灵魂;也可以让那些迷途的羔羊,引以为戒,奋发图强,在恰当的时间里,在适合自己的道路上披荆斩棘,勇往直前,创造属于自己的辉煌。更可以解剖人生,探究灵魂,寻求真谛,放飞心灵,让假丑恶在烈日下暴曝,使真善美在甘露里滋养;让华丽掩藏的肮脏暴露在阳光下面,使正义湮没的腐臭吹散于飓风之中。不希望名流千古,也不奢求身家有值;只是在人生末途散发余热,在风烛残年不蹉跎岁月;也可以说是菩提下的空悟,是灵台里的忏悔;是坎坷崎岖道路上的觉醒,也是酸甜苦辣滋味里的品尝。 刚刚毕业的少年,满腔热血。却意外卷入一起谋杀案件…… 简介无力,移步正文江边夜里,爷爷将我捡来,取名江夜。 我本以为自己就是一个孤儿,却不曾想十八岁那年,身边开始怪事频频…… 我没有想过,江边飘来的红木棺材,改变了我的一生…… 我更没有想过,这辈子会和一口棺材纠缠不清……生命就是一场经历。没了高中的紧张,大学里放松了很多。 思想上的经历,可以通过多读书来实现。但生活上的经历,只能是自己切身体会。 大学四年,在酒吧兼过职,处了舞蹈系最漂亮的女朋友,球场上跟体育生比过武,跟英语专业最牛逼的男生交了朋友,社团招新上出名全校,也受过其他学生的欺凌,看到过同学生命的逝去,也一直结识更多新的朋友。 小说来源于现实,现实又何尝不是一部小说。带着200级三转大法师的记忆,陆阳重生回到了十年前,命运跟他开了一个玩笑,曾经失去过的,被夺走的,他都要重新拿回来。游戏中的赚钱技巧、副本攻略、传奇任务、装备出处、图纸秘方、战斗技巧他全都知道,且看一个重生玩家如何带着兄弟们横扫万国、焚尽天下,开启一段火神的传奇! 你说你叫荒天帝?嘶!叶小天吸了好大一口凉气,等等!谁特么放屁了!   荒天帝:“叶凡快按住那条狗!”   叶小天:“我说了我不是叶凡”   唐三:“你们捉狗做什么?”   叶小天:“你谁啊你,怎么长的比我还娘”   许七安:“咦,今天有狗肉吃了?”   许仙:“请问有没有见到我的娘子?”   叶小天:“......”   这是一个什么鬼的世界!!听老人讲民间故事奇闻杂谈惊悚传说还有最终结果
龙岗营销网站建设公司 微网站页面 网站建设趋势2017 昆明响应式网站 信息安全系统等级保护 北京公司网站建设报价 温州手机网站制作公司电话 解密星巴克的微信营销 网络营销的优秀案例 网络安全的基础知识 万户网络网站顾问 企业如何做网站建站 龙岗营销网站建设公司 企业网站优化 福州外文网站建设 网站设计行业资讯 网络安全防火墙论文 信息安全测评工具 信息与网络安全关系 南开大学信息安全硕士 乐清网站制作推广 网络营销课程的认识 网络安全实验室脚本关 东莞php网站开发 长沙营销型网站建设 桂林网站建设 网络安全法专题培训 昆明网络营销网站 公司网站非响应式 网站建设趋势2017 上海品牌营销服务 网络安全产品解决方案 多边形网站 网络营销目标怎么写 网站ueo 长春网站建设推广 微贷营销案例 vpn 网络安全 微信公众号的营销活动 国家网络安全级别 网站设计费 网络安全竟赛 关于信息安全测评认证收费标准 武汉微信营销公司 网站ueo 信息安全技术主要内容 某电器的o2o营销方式 东莞专业网站制作设计 网络安全实验室脚本关 网络安全 金融 网络营销师考试形式 rss营销的作用 信息安全需求不包括_____( 微信营销思路 南开大学信息安全硕士 视频营销优缺点 台湾网站建设 免费网站注册永久 网站优化合同 网络营销师考试形式 网络营销学什么专业 西安网络营销资讯 免费注册网站 长沙营销型网站建设 网络安全峰会时间 信息安全部全称 重庆网站设计公司排名 做好的网站如何上线 关于信息安全测评认证收费标准 福州外文网站建设 东莞php网站开发 长春网站建设推广 ps个人网站的首页界面 网络安全监测预警 哪个网站是专门为建设方服务的 如何确保网络安全 学院网站规划方案 互联网营销网站有哪些内容 自己建的网站打开的特别慢 服务营销缺点 网络安全法制定本行业 酒泉网站建设 国家信息网络安全 汕头网站建设公司 成都活动网络营销 北京公司网站建设报价 福州外文网站建设 网络营销产品缺点 解密星巴克的微信营销 哪个网站是专门为建设方服务的 google 信息安全工程师,-1 国家信息网络安全 网站有哪些 企业如何做网站建站 网络安全法专题培训 微信群营销推广方案 信息网络安全技术培训萍乡网站建设 internet的网络安全 全国大学生信息安全竞赛成都 上海高端网站建设 企业如何做网站建站 营销包含哪些 杭州网站建设设计东莞网络营销外包 免费注册网站 信息安全服务资质一级 开放网络安全吗 网络营销环境对策 绵阳市公司网站建设 网络层上最常用的信息安全技术是 龙岗营销网站建设公司 信息与网络安全关系 网络安全实验室脚本关 上海品牌营销服务 网络安全的基础知识 建立网站的费用 网站制作时如何分析竞争对手 形象型网站 企业网站优化 营销包含哪些 在线营销郑州做网站的外包公司 网络安全 方向 网络营销环境对策 自主营销系统 建立网站的费用 亚太区信息安全 个人手机版网站建设 微贷营销案例 网络安全的硕士 常州做网站公司 网络营销团队宣传视频 酒泉网站建设 营销式网站 个人手机版网站建设 学院网站规划方案 网站的标准 网络安全法专题培训 推广型网站制作哪家好 微博优质内容营销案例 武汉网站优化seo 网站模板网 信息安全技术主要内容 网站的标准 信息网络安全技术培训萍乡网站建设 网络安全 方向 重庆网站设计公司排名