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
日本漫画女人绑架男人龙女为主角的漫画动物恋漫画图片 迅雷下载地址老人与年轻人的漫画河神的新娘漫画韩语日本漫画女人绑架男人柯南吃醋漫画动物恋漫画图片 迅雷下载地址海贼王色情漫画同人史莱姆娘漫画魔物动漫日b漫画大全图片 迅雷下载动物恋漫画图片 迅雷下载地址漫画少女图片灰色动漫日b漫画大全图片 迅雷下载强插班长漫画图片史莱姆娘漫画魔物立花南国漫画不败战神漫画书不败战神漫画书贝吉塔和悟空肉肉漫画和隔壁邻居的故事漫画不败战神漫画书海贼王色情漫画同人恐怖漫画祭品河神的新娘漫画韩语两个女生自虐的漫画韩国秘密漫画全集恐怖漫画祭品贝吉塔和悟空肉肉漫画漫画少女图片灰色有关太阳系帝国時代英雄及惡魔的恩仇。徒儿,为师为你算了一卦,终于找到了你无法晋升的原因,你要修成正果,需得救死护伤,解救众生的疾病之苦,同时还需去游历红尘,经历七七四十九次情劫,得到七位凡间女子的至真至纯的真爱,如此你才能和你们师兄们一样修成正果。鸿钧老祖对着自己的小徒弟说道。 “师傅,你的意思是徒弟我要到凡间经历劫难吗?” “差不多就是这个意思!!”。 “师尊,这凡间可是恶人横行,妖魔遍地,再说了,治病救人到没问题,但是凡间的女子都很物质化,要求别墅豪车,金银财宝才能结婚,哪里还有至真至纯的爱情,徒儿不想去,徒儿就当个小小的仙人,也无所谓!!!”。 “不行,你不要脸,师尊还要脸呢,我的弟子咋能是一个小小的人仙”。 “徒儿去凡间,可以带几个法宝过去防身?” “你这顽徒,对付手无缚鸡之力的凡人,带宝贝去,为师将封印你的记忆和仙力,你就好好的历情劫吧!!!”老祖怒极而笑。 说完,鸿钧老祖,左手撕开一个黑洞,右手一把抓住秦风流,把他扔进了黑洞。 颓废的陆回穿越到20年前的初中,重拾激情。在他奋斗的过程中,历史也悄然改变。陆回不仅成就了一番事业,也获得了众多芳心。魔猴王擎天乃魔界之王、毁灭之王。血红魔眼,乌黑毛发蜘蛛猴血统的猴族传奇角色,来源擎国大陆,擎皇第九子。随故事发展有着形态多变与毁天灭世的武功,叱咤风云,统一整个魔界。 为想得到龙族鼻祖烛龙的力量,与其在众界中开战九天九夜,随后烛龙一爪将他打入深渊。擎天用尽所有力量还是死于非命,转世到一神秘世界大陆,此大陆名为“玄天大陆” 此界每人都有着战魂和属性技能,是修炼法则之界。这也有关于魔猴王擎天的传说。擎天转世来到此界,武功与世界观不符凡体战魂便一无是处,后在此界发展摄影兼业余小说家行业过着平凡生活。 擎天前世记忆会隐约想起便写作成书,后被商家看中提出合作。擎天带兄弟梵一同上路。中途遇飞机坠毁而亡。在冥界对立大闹冥府。冥王得知拿下且夺走等人灵魂,让他们成为鬼差终身为冥界效力。 成为鬼差的擎天得到冥界阴气,战魂化冥魂,前世实力也一一开发。最后找到烛龙烛九阴,再次开启腥风血雨的大战。赵凡刚穿越成为蜀山少宗主,还没有来得及大展拳脚,享受众星拱月的待遇,却因为前身私闯禁地致使紫青双剑暴动误伤门人,被蜀山宗主打入锁妖塔不得翻身! 但幸运的是,赵凡刚被带到锁妖塔,就意外激活了签到系统,在系统的帮助之下,他如同开了外挂一般在锁妖塔内默默变强。 “叮,锁妖塔大门前签到成功,奖励先天剑体。” “叮,锁妖塔内签到成功,奖励培元丹。” “叮,锁妖塔妖坟古门签到成功,奖励极品飞剑。” …… 三千年后,赵凡盘坐虚空,仙道气息震动苍穹,终成一代陆地剑仙,问鼎修仙长生路! 我叫鲁笠一个大学新生,通过自己吭哧瘪肚的努力加上家里的钞能力终于考上了大学,不过是个二流大学,专业的传媒。 今天是新生报到的第一天,而我的寝室是男生宿舍4号楼四单元404室!一个据传很邪门的寝室。 而我们的故事也从这里开始。一部上古医典,一部乱世魔经 横空出世,搅动四方风云 步步血腥,步步诡谲 多少风雨吹尽 终于坐看云起云落 【元宇宙-惊悚世界】 “我不想死啊!” “妈妈救我,我不要进入惊悚游戏!” “救命!救命!有没有人,快把我放出去!” “我是XX大明星,谁愿意救我,你要我做什么都可以!” 惊悚游戏降临全球,每个月随机抽取大量人类进入游戏世界与厉鬼为伴。 当所有人都在惶恐、害怕、恐惧中苦苦求生的时候,第一次进入游戏的陈凡发现,他每次开始游戏前居然能先抽取一件强大鬼物! 鬼外卖游戏中,当别人还苦哈哈骑着纸扎的电动车给鬼送外卖时,陈凡已经骑着猛鬼摩托在大街小巷风驰电掣,单单好评。 当别人好不容易与一只鬼签订契约的时候,陈凡已经拥有了一堆鬼王,组建了第一支人类为首领的鬼军!震撼两个世界! 他麾下的女鬼,实力无比强大,更是个个国色天香,对林风死心踏地。 赚取无数金钱的女鬼总裁,神秘强大的幽界之主,拥有僵尸大军的飞僵女王,修炼千年的倩魂姐妹……主角楚墨,婚礼时,被兄弟当场绿了,因气不过,直接冲出婚礼现场,可突然,一辆小车冲来,死了……陈阳被困在了一个永远无法逃离的循环里,只要过了情人节的15点15分,他就会重新回到15天前。 陈阳发现他无论做什么,都无法打破这个半个月的循环,所有的一切都会重置。 在经历了震惊、刺激、狂喜、焦虑不安、绝望和痛苦等情绪后,陈阳开始各种作妖,决定把这个世界搅得天翻地覆。 陈阳开始学习各种技能和知识,利用它们去达到自己的目的,也完全不用考虑任何后果的恣意妄为,去成为世界的焦点。 尤其是针对那些为富不仁的富豪和权贵,更是让陈阳兴奋的难以自制。 直到有一天,陈阳掀翻了娱乐圈的时候,却发现循环忽然被打破了.....
御兽:开局觉醒九星天赋 椅阑醉琼枝 种族之地:壹 烬盛理想 网游:开局无限BUFF,我最强药师 永夜 幽异之王 天纪:靖帝本纪 旭日东升之帝国霸业 逐渐离谱的故事 从纨绔开始 黑夜安魂曲 神纹天 戮神空间 西游总导演 大恶人系统 苍宇彼岸 重生:玻色子生命体 最后的僵尸道士 掠夺诸天万界的生存之旅 七大罪团长vs十戒漫画 春秋封神漫画免费 立花南国漫画 河神的新娘漫画韩语 七大罪团长vs十戒漫画 江湖之天下第一漫画 立花南国漫画 漫画妮可罗宾在司法岛 两个女生自虐的漫画 漫画女孩背面 恋爱大王漫画 恋爱大王漫画 恐怖性游戏漫画全集 春秋封神漫画免费 日本漫画女人绑架男人 河神的新娘漫画韩语 脸红漫画图片 两个女生自虐的漫画 师兄妹肉漫画 动物恋漫画图片 迅雷下载地址 春秋封神漫画免费 强插班长漫画图片 龙女为主角的漫画 动漫日b漫画大全图片 迅雷下载 史莱姆娘漫画魔物 恐怖性游戏漫画全集 两个女生自虐的漫画 龙女为主角的漫画 师兄妹肉漫画 两个女生自虐的漫画 河神的新娘漫画韩语 川内三姐妹邪漫画 老人与年轻人的漫画 日本漫画女人绑架男人 恐怖漫画祭品 河神的新娘漫画韩语 老人与年轻人的漫画 立花南国漫画 恐怖性游戏漫画全集 强插班长漫画图片 韩国秘密漫画全集 漫画女孩背面 日本漫画4年生 脸红漫画图片 动漫日b漫画大全图片 迅雷下载 春秋封神漫画免费 恋爱大王漫画 韩国秘密漫画全集 恐怖性游戏漫画全集 柯南吃醋漫画 亚星官网 亚星官网 亚星游戏官网 亚星官网 亚星官网 穿越后死宅被迫震惊全世界 狂龙御天 我靠出其不意横推里世界 诡异血尸录 末世宠神进化系统 万利官网 皇冠登3出租 百家乐官网 万利官网 欧博官网 不败战神漫画书 龙女为主角的漫画 龙女为主角的漫画 春秋封神漫画免费 春秋封神漫画免费 河神的新娘漫画韩语 不败战神漫画书 漫画妮可罗宾在司法岛 漫画少女图片灰色 恋爱大王漫画 日本漫画4年生 韩国秘密漫画全集 两个女生自虐的漫画 动物恋漫画图片 迅雷下载地址 师兄妹肉漫画 不败战神漫画书 恐怖性游戏漫画全集 漫画少女图片灰色 漫画少女图片灰色 川内三姐妹邪漫画 春秋封神漫画免费 韩国秘密漫画全集 不败战神漫画书 强插班长漫画图片 漫画女孩背面 脸红漫画图片 贝吉塔和悟空肉肉漫画 韩国秘密漫画全集 七大罪团长vs十戒漫画 日本漫画女人绑架男人