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 as part of Bootstrap is a 940px-wide, 12-column grid.

It also has four responsive variations for various devices and resolutions: phone, tablet portrait, table landscape and small desktops, and large widescreen desktops.

<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

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="span12">
    Level 1 of column
    <div class="row">
      <div class="span6">Level 2</div>
      <div class="span6">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>
Variable Default value Description
@gridColumns 12 Number of columns
@gridColumnWidth 60px Width of each column
@gridGutterWidth 20px Negative space between columns
@siteWidth Computed sum of all columns and gutters Counts number of columns and gutters to set width of the .container-fixed() mixin

Variables in LESS

Built into Bootstrap are a handful of variables for customizing the default 940px grid system, documented above. All variables for the grid are stored in variables.less.

How to customize

Modifying the grid means changing the three @grid* variables and recompiling Bootstrap. Change the grid variables in variables.less and use one of the four ways documented to recompile. If you're adding more columns, be sure to add the CSS for those in grid.less.

Staying responsive

Customization of the grid only works at the default level, the 940px grid. To maintain the responsive aspects of Bootstrap, you'll also have to customize the grids in responsive.less.

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>

Responsive devices

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: 768px) { ... }
// Portrait tablet to landscape and desktop
@media (min-width: 768px) and (max-width: 980px) { ... }
// 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 hidding 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

Test case

Resize your browser or load on different devices to test the above clases.

Visible on...

  • Phone✔ Phone
  • Tablet✔ Tablet
  • Desktop✔ Desktop

Hidden on...

  • Phone✔ Phone
  • Tablet✔ Tablet
  • Desktop✔ Desktop
校花控制器漫画第一图片网漫画邪恶漫画骑马式追杀岛漫画大胸少女在线漫画校花控制器漫画阿什么漫画书邪恶漫画骑马式黄漫画老师17岁的亲吻恋爱漫画耽美漫画贴吧宝井哮季邪恶漫画骑马式机器猫历险记漫画耽美漫画贴吧宝井哮季魔王大人天使漫画17岁的亲吻恋爱漫画11人漫画狐妖小红狼漫画txt狐妖小红狼漫画txt新蝙蝠女漫画图片大全图片大全剪刀石头布漫画免费下载狐妖小红狼漫画txt黄漫画老师邪恶漫画神奇宝可梦大胸少女在线漫画美女被吸奶漫画单打对双打帮姐姐爱丽丝学园漫画全56话邪恶漫画神奇宝可梦新蝙蝠女漫画图片大全图片大全机器猫历险记漫画《神秘的小葫芦》一书,着重介绍的是明朝嘉靖年间,在还乡河畔的阮家庄曾经发生过一件稀奇古怪之事。 而此事就发生在阮家庄阮鹏翔的家里。阮鹏翔早年丧妻,自己辛辛苦苦的把三个儿子拉扯大了。 老大读书最多,但他耍钱闹鬼儿不务正业。几乎输掉了家里所有的钱,弄的弟弟小三儿上学连书本儿都买不起。街坊邻居说七道八,阮鹏翔左右为难之时,遇相面先生指点迷津。 之后,阮鹏翔让三个儿子各奔东西,自谋生路,从此父子们不在一起守着一亩地过日子。 经过一段时间的打拼,老大、老二都挣到了钱,盖上了瓦房,娶上了媳妇儿。而小三儿却只是抱着一个小葫芦狼藉而归。谁也没有想到,小三儿那小葫芦竟是个宝物。 老大媳妇儿知道后,立刻起了贪心,连哄带骗,威胁恐吓,最终把小三儿的小葫芦弄到了手。但事与愿违,让老大媳妇儿没有想到的是,那宝物到了她的手里,千呼万唤不好使,竹篮打水一场空。【恭喜!】 【作家4462377565号成功完本】 【得到认可“神作”】 【获得作家经验10万点】 【正在抽取作品中的技能】 …… 【警告!】 【作家996331415号作品涉及违规内容】 【正在执行抹杀】 …… 【恭喜!】 【作家000005743号累计收到价值打赏币100万的礼物】 【获得作家经验1万点】 【由于此作品无特殊技能】 【正在获取其余同时期作家低一级的作品信息】 【正在抽取技能】 …… 【警告!】 【重生者004370227号抄袭后世作家作品】 【正在执行抹杀】 …… 【恭喜!】 【作家0000094941号每日更新15000字】 【获得称号“全勤(大师)”】 【获得“万界宝箱(黄金)”一个】 …… 这是一个读者为神的世界,作家是这个世界上令人敬仰的修炼者,而其余只能作为游客阅读小说的人,要么是懦弱的蝼蚁,要么是正处于保护期的未成年人。 刚穿越到这个世界的李子梦本以为可以大展才华,却发现穿越者不可抄袭原世界作品。这是一个总是被提起却又被带过的话题,更多的看客也是调侃。 可当这一切发生在自己身上的时候,才能清楚的体会到如此纯粹的恶意。 被辱骂,被殴打,被叫做猪猡,被夺走一切。 它叫做霸凌,是弱者聚集在一起对更弱小者实施的行为。 可如果弱者变为强者,当他们身份开始互换的时候,一切又会怎样发展呢……   综武大陆,王朝林立。   李损穿越而来,成为古墓派唯一男弟子,激活鸿蒙签到系统。    从此丹药、神功,样样不缺,美女、公主接连不断。   九阴真经我有!   十绝体我有!   大还丹我有!   降龙十八掌我有!   我有!我有!我全都有!   李损签到十年,自此无敌世间!                   宇宙似乎很宏大,但却小之又小,宇宙之外是虚空,虚空里是什么呢? 时间是最快的速度吗?时间之后会产生什么呢? 多元宇宙的探索,科技的进步。人们也开始进入时间之中。 剩下的时间里会出现几个自己呢? 他们是残余,还是自己是残余。 残余本来就是剩下的!半封闭的小镇,每年都会发生几起人口失踪案件,富商大贾的儿子,每日过着奢靡的生活,流传的古老传说只有少数极老的人记得,雪媚是一种极其貌美,摄人心魄,怪异残忍的精怪,常年寄存在人体中,看似风平浪静的海面,直到小镇上忽然出现的红裙女人,打破缺口,揭开一切谜底。秦风穿越回到20年前,他是否够成为地产行业大佬、做有良心的房地产企业,成为行业翘楚,且看他如何一步步走向人生巅峰。成就万亿企业,改变后世格局。慕薄渊生而孤单,天生拥有半仙之体,人帝血脉,地府之根,但受天地法规排挤于三界之外,天帝恐其天阴之力,奴役三界同时与慕薄渊为敌,自幼便打压欺凌,欲置于死地。 慕薄渊觉醒天阴之力凭一己之力打出地府,游走人间,建军功,收异族,得女娲至宝,修成奇功与天帝抗衡,最终使天庭低头。 慕薄渊舍不灭之身,九华之功,天阴之力重新建立虚弥十二界:天,地,人,鬼,神,灵,妖,异,兽,禽,修,极乐。 十二界由低阶至高阶排布,供各阶生灵繁衍生息。这便是至今也不得跨越的十二界。 慕薄渊是个弃儿:三界之中无容身之所,立足之地。 慕薄渊是个暴君:左手杀魂,右手灭灵。 慕薄渊是个情种:有情一生只爱一人,无情不解世间风情! 慕薄渊是个犟驴:一生只做一件事。 慕薄渊是个怼货:怼天怼地怼人君。 慕薄渊是个怪人:心软时绕指柔,心硬时冷如铁。 其实,慕薄渊仅仅就是慕薄渊,他就是你心中的魔,梦中的神。雷公打了个喷嚏把我劈死了,我还得到了个系统?性格孤僻的天才警官南港市公安局东海分局局长北海琼月只有一个愿望——成为一名恪尽职守、秉公执法的优秀警察。她从不怀疑自己的能力,坚信自己能做到让每一起案件水落石出,不料南港市发生的一系列连续凶杀案让一向被誉为神探的北海琼月焦头烂额,被害者不仅毫无共同点,而且死因离奇。北海琼月身为专案组长一直希望尽快破案,不料一件又一件事情打乱了她的计划…… 正在北海琼月被一个个意外弄得焦头烂额的时候,案件出现了一丝转机,有人目击到凶手犯案的过程,甚至在案发现场活捉凶手。本该为此举杯庆祝的北海琼月却陷入了沉思,这个被逮捕的凶手不是别人,正是和她一起上学、一起工作、一起办案的她唯一的朋友。 友情的信任遭到了巨大的冲击。作为警察,北海琼月有义务履行职责;但作为朋友,北海琼月不相信她是凶手。信任和证据面前,北海琼月必须做出抉择。
残阳如血青山魂 林家小道士 让你报志愿,你开始逆袭了? 魂穿大秦:我竟成了嫪毐 玛法传奇3 异梦怪谈 无敌保护系统 洪荒超神 离婚后,我捧红了文娱天后 江湖锦衣卫 幕后的观众 全球灾变:我有百倍振幅 阎王转世录 全民领主:我能看见武将进化路线 离开人间到哪去 我在大明当强盗 断杀戮 无限世界:请君入梦 我亦是英雄吗? 斩妖,从捡游戏技能开始 电车痴汉18漫画 迅雷下载 迅雷下载 迅雷下载 2格反转漫画全集 11人漫画 大胸少女在线漫画 电车痴汉18漫画 迅雷下载 迅雷下载 迅雷下载 地铁少女邪恶漫画大全图片大全图片大全 11人漫画 古代啪啪啪漫画 美女被吸奶漫画单打对双打帮姐姐 漩涡博人漫画次世代 黄漫画老师 幻想女仆 漫画145 邪恶漫画小丑女被草 2格反转漫画全集 校花控制器漫画 大胸少女在线漫画 穿越黑执事的漫画 美女被吸奶漫画单打对双打帮姐姐 .色情漫画少女被吸奶 邪恶漫画骑马式 2格反转漫画全集 魔王大人天使漫画 第一图片网漫画 耽美漫画贴吧宝井哮季 17岁的亲吻恋爱漫画 邪恶漫画小丑女被草 美女被吸奶漫画单打对双打帮姐姐 第一图片网漫画 .色情漫画少女被吸奶 美女被吸奶漫画单打对双打帮姐姐 大胸少女在线漫画 70年代女孩上学漫画 追杀岛漫画 校花控制器漫画 邪恶漫画神奇宝可梦 大胸少女在线漫画 追杀岛漫画 11人漫画 邪恶漫画小丑女被草 魔王大人天使漫画 爱丽丝学园漫画全56话 漩涡博人漫画次世代 幻啃漫画. 穿越黑执事的漫画 耽美漫画贴吧宝井哮季 2格反转漫画全集 幻想女仆 漫画145 爱丽丝学园漫画全56话 邪恶漫画小丑女被草 阿什么漫画书 亚星官网 亚星官网 亚星游戏官网 亚星官网 亚星官网 诡异之王 荒事 我六耳从洪荒开始布局西游 在校成神 黎明之末世纪元 AG真人 欧博官网 亚星管理平台 AG真人 百家乐官网 追杀岛漫画 .色情漫画少女被吸奶 追杀岛漫画 漩涡博人漫画次世代 大胸少女在线漫画 追杀岛漫画 穿越黑执事的漫画 大胸少女在线漫画 70年代女孩上学漫画 阿什么漫画书 70年代女孩上学漫画 新蝙蝠女漫画图片大全图片大全 17岁的亲吻恋爱漫画 邪恶漫画小丑女被草 第一图片网漫画 幻啃漫画. 机器猫历险记漫画 魔王大人天使漫画 机器猫历险记漫画 第一图片网漫画 11人漫画 触碰bl漫画第三话 邪恶漫画小丑女被草 阿什么漫画书 幻想女仆 漫画145 邪恶漫画神奇宝可梦 黄漫画老师 70年代女孩上学漫画 .色情漫画少女被吸奶 70年代女孩上学漫画