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
企业营销网站建设公司哪家好网站改版完成如何免费建立网站营销定制合肥网站设计高端公司商城网站都有什么功能模块大学生网络信息安全建官网个人网站模板建站影响网站的优化排名珠海企业网站建设费用国内十大信息安全事件网络安全运营管理信息安全管理实验报告营销的拼音网络安全黑白之道网络营销活动规划信息安全方面的软件南京需要做网站的公司网站建设陕icp企业网站系统娱乐营销的优点北京网络营销博客杭州网络科技网站网络安全idc排名成都网站建设公司长沙网站制作营销团队的介绍焦作建网站网站程序开发常州网站制作机构阿伯说:“小恭啊,我看好你,北齐的未来,就交到你手里了。”兰兰姐说:“去了前线,要做个男子汉呦,不许再哭鼻子了。”小小米说:“长恭哥哥,你教我的小纸鹤,我已经可以叠的很漂亮了呢。等你走后,我每天叠一只,你回来以后,我把他们都送给你。”穿上盔甲,带上面具,他就是神勇无敌的兰陵王。不再是那个流落街头跟一群乞丐抢窝头吃,像狗一样趴在地上吃东西的孤儿。只是啊,他好怀念从前的时光,他不是兰陵王。本是先帝血脉,然遭逢巨变,只得流落凡间,颠沛流离,沦落红尘,招人欺辱,命运多舛,历经生活困苦,然而时光荏苒,白驹过隙,逐渐成人的小混混,难敌红尘诱惑,真所谓窈窕淑女君子好逑,何况乎一个人人叱之以鼻的小痞子,更是整日做着赖蛤蟆想吃天鹅肉的美梦,戏剧性的是美女爱痞子,佳人何其多,为了心中执念,痞子也可憾苍天……“沈昱辱我清白之身,还请沈家给我李家一个公道!” “身为沈家世子,犯下此等恶劣罪行,汝可知错?” “欲加之罪何患无辞!” “证据确凿,汝犯下此等滔天罪孽,还不认错,罪加一等!” “罚你禁足三年,将汝之罪行,昭告天下!” 大概没有人比兰宜池更衰了的吧! 毕业找不到工作! 演NPC莫名被密逃室的白影绊倒! 去酒吧喝个小酒还被女鬼搭讪! 无端端的在小区还碰到老头勾引。。。 好不容易欧了一次,捡了100块钱,转手就被忽悠着买了只鸟! 居然还有人说她有什么特殊命格,要一起拯救世界! 苍天啊!世界毁灭吧!当白夜在一片欢呼声中举起那座属于CNCS的major奖杯时,拿个冠军就退役,终于不再是当初被嘲讽的一句玩笑话。 两年前,因为白夜的一次错误决策,让CNCS蒙尘,两年后,白夜带着这个草台班子网吧战队,将会席卷整个CSGO! 星海战队,我们的目标是,世界顶峰!本是狗神的无耳遭人陷害,投胎转世成了凡人,但是拥有九个逆天的武魂“那就让我来宣布对你的审判结果吧。”军事法庭上,一名身着盛装的法官对着面前的蓝发少年说着,纵使是他们在审判这个男孩,纵使法庭外驻扎着一只军队随时防备着,但仍旧掩盖不住他们眼里的恐惧,只有旁边的一位白发红装少年和金色长发绿色荷叶裙的少女能带给他们安全感。 “南宫星辰,故意发动战争,致使伤亡上万人,鉴于其知错能改,并在后来的战争中发挥了巨大作用,宣判:南宫星辰流放荒地,不得王命,永世不得入法斯。”‘’南宫星辰,领罪矣‘’一次机遇之下少年重获再活一世的机会来到了一处崭新的世界,这里没有花俏绚丽的魔法,人人却都崇尚修炼魂力,修行极其艰难却不断有人前仆后继,因为命运的安排少年同样踏上了这条永无止境的道路那他又会到达怎样的地步?这其中又会有多少命运的羁绊?又会有多少的艰难与辛酸...... &amp;lt;万界魂破&amp;gt;是我的第一本书,所以希望承蒙各位读者的关心这个小镇终年被团雾环绕,它将所有人都困在了原地。没人敢靠近它,它会让人麻痹,消融在雾气中…… 萧志昂,一个误闯渝水镇的外地少年。 第一次重生是遇到了刺杀,醒来后回到了来渝水镇的头一天,也就是死前第三天。 第二次重生是遇到了谋杀,醒来后回到死前第七天,而且他还发现只要不提羊子,不建议搜山,就不会死亡。 第三次重生到第六次重生是李桦娇遇险,萧志昂被枪击。但是每次醒来都是事发当下,一直到他找出那个背后的凶手才解除循环。 第七次重生是逃出搬运站,结果因为摘果子自投罗网,直接被送回了七天前,也就是第一次发现搬运站的这天。 随后,第八次、第九次、第十次重生则再次陷入循环,老是因为一头野猪而没法逃脱。 …… 这到底有什么样的规律呢?究竟要怎么样才能逃出渝水镇呢? 一次又一次的死亡,一次又一次的重生,终于他把每次重生后得到的线索汇聚到了一起…… 同时,他还发现,通过自己的不断探寻,渐渐也让身边的朋友拥有了超能力……雇佣兵团统帅重生乱世,成为一穷二白的农家汉。 瞧着漂亮媳妇与可爱女儿…… 李长恭坚定的表示:“当然是宠着!” 开局家徒四壁,没米下锅,不慌。 制精盐、贩粮草,与海盗交易,与豪门发难,先赚他一个亿! 战火燃起,疆土沦陷,王孙贵胄却要放弃抵抗丢下百姓跑路,不慌。 诛奸臣,灭仇寇,雪国耻,挥手间,成就大靖枭龙!
网络安全主题日 大学 网络安全治理 品牌网站设计 gb/t 20272-2006 信息安全技术 操作系统安全技术要求 信息安全师等级什么叫b2b营销模式 网站需要几个人 网站示例 国家信息安全事件,-1 福州建网站 做网页 成都网站设计制作工作室 选择信息安全控制措施应该 杭州网络科技网站 营销网站与传统网站的区别 合肥网站设计高端公司 成都网站建设市场 网站程序开发 牛肉干营销方案 营销团队的介绍 企业营销有 手机 网络安全 第三方营销资源平台 网络营销传播渠道研究 软件开发和网络安全 珠海企业网站建设费用 企业营销有 选择信息安全控制措施应该 怎么做微网站 网站示例 信息安全等级保护制度是国家对 网络安全攻防大赛简讯 焦作建网站 福州建网站 做网页 国外网站设计 作网站 信息安全监控系统 信息安全 数据分类通信网络安全合格证 石家庄开发网站 选手机网站 网络安全法思维导图 网站推广方案