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
漫画甘奈同学男生的小丁丁漫画最佳女主播漫画全宇宙奥特曼漫画大全小桃小栗漫画番外漫画甘奈同学东北小平头漫画最佳女主播漫画内涵漫画水中漂柳叶女子搭车被卖掉的漫画古代漫画图片封面漫画甘奈同学韩国《重新再爱》漫画古代漫画图片封面最佳女主播漫画关于相处的漫画动漫女生黄漫画图片小桃小栗漫画番外小桃小栗漫画番外萌系漫画少女火影忍者腾迅漫画公交男女漫画在线阅读内涵漫画水中漂柳叶最新日本sm漫画大全女蜘蛛侠的色系漫画大力神漫画兽人bl全宇宙奥特曼漫画大全少爷的仆人耽美漫画萌系漫画少女韩国少女漫画大全校园第1章 被算计了 “唔,好痛。” 姜笙醒来后感觉身体如同被碾过般,刺痛乏力 音起人心合,音落山河断,音乐可以抚平世界的创伤,于是天下便有了一种特殊的行业--音师。不同于乐师的音乐,他们用灵魂来奏乐,用生命来抚平世界的伤痛。 没有天魂的废物,十分的喜欢音乐。 明知自己无法修炼,却在天魂觉醒仪式上立下豪言壮志:“我姜灵,虽然没有什么修炼天赋,但我的目标也不会被世界改变,我要做的是改变世界。”妖魔并起,人族大秦风雨飘摇。 林枫穿越成为大秦书生,觉醒神级读书系统,只要读书就可以提取神通,获得才气值抽奖。 “叮,宿主翻阅《天龙八部》,提取神通下笔如有神!” “叮,宿主进行紫级奖池抽奖,抽到圣级修为!” …… 大秦生死存亡之际,一位青衫书生横空出世,吟唱成剑,风采绝世,无数神通尽出,百万妖魔飞灰湮灭!  “左眼为阴,右眼为阳,日夜更替,阴阳轮换,俱在我身”   浩瀚的宇宙边陲之地,只有无光无明的漆黑。   有一个男子正盘腿悬坐在星空中,而伴随刚才的话语,他的眼睛突然从眼眶里跳了出来,只留下两个空洞的眼眶,   此时这两只眼睛都还覆盖着眼皮,闭着眼睛。   忽然,一只眼睛睁开。   漆黑的星空便有了光明,十分耀眼,光芒照在男子和他前面的一具尸体上。   这时,才发觉这男子和这具尸体竟散发这仙人之气。   男子是这方世界两大仙帝之一的——陆仙帝,而他面前的尸体则是另外一个仙帝——陈仙帝。   两位仙帝大战于此,落得两败俱伤。   陆仙帝左手之上托着一个灵魂,恰是一个女子的模样,不过已经没有了多少灵性,陆仙帝叹了了口气,道:   “便只能转世重生了”   而陆仙帝刚才将自己的灵魂打入这三千世界,转世重生,夺取生机。   灵魂纷纷降落重生,化作小世界中的土著,其中便有一份灵魂便将落在这一方世界——蜉蝣界。   故事就此开始,一个二十一世纪的屌丝,刚完成一单新闻,猝死出租屋,还不知道有没有人收尸就来到了楚国,一个有着宋的憋屈明的铁血的平行空间还是异世界?总之不小心成了异性王唯一的子嗣,可能出场姿势不好,被人用锤子打出了的。周边都是贼兵蛮子鞑子,好在有后世的天线一条,不至于被古人玩死成为最惨穿越者,一路泡妞打蛮子,没事就种种地!当然是真的种地。神祇时代,人人皆为神明,体内创立神国,高举神火,万族繁衍。 就在神明们还在争论到底是半兽人厉害,还是亡灵系大军恐怖的时候。 林凡看着自己的十万个钻在草丛里的大盖伦,无敌寂寞。 “我真的不是最强天神。” “我只是一个普普通通的LOL玩家而已。” 一众神明痛哭流涕:“大佬你说的都对,能不能先让那群莫甘娜把我们放开?我们真不认识凯尔!” “伟大的神王,快把那个爆破鬼才收回去吧,它往我的神域里扔了个东风快递!” “天啊,三万个死亡歌颂者的死亡合唱团又在唱歌了!” 小马哥,血战死亡后被万千影迷惋惜,然后复生到鞥司世界,与大学新生马可融合。讲义气的大古惑仔和大学生,不友好的开局,没有提前量的信息集成,只是一个小小锦衣后人。为了寻找失踪的父母,马可只能不断变强,异能者的动乱,外域的强者.......魂穿入另外一个平行世界,开启了一段全新的世界之旅。可在这个时间,原身居然是以为嚣张跋扈的恶少,仗着自家强大的经济实力为所欲为。可恰好这个恶少因从小体弱多病导致身体不行,导致我们的主角穿越来后开启了一段爆笑喜剧生活。“我错了,你们,你们不要过来啊!!!”天缺之人,破灭残魂。 二十诅咒,修炼还是平凡。 看许亮如何在御灵大陆上成就霸业。 术创世,术者,万物之本源也。创者,万物之载源也,世非术创,而为术与创。术创化一,术创化二。术之天地,创之时空。何为术创?探索,从第一篇起,末日,一。 一股叫术的能量横空出世,引发了一场末日危机,是灾难,还是新生。神秘学校的背台究竟是谁,这一切究竟是有人策划,还是一起起的意外,又或者说这就是命?
重生之缘来在韶华 我在异界当兽医 医商巨擘 末日灾害 往梦复生 以吾为天 神医胆子大,校花放产假 仙女请指教 我只想做个二把手 逆生长空间 白虎堂二三事 无极枪圣 我卡在金丹期五千年 元宇宙之自由 万纹之秘 刷怪录 太岁:不良少年到待业青年 凡人飞升诀 遮天帝神 重治 大力神漫画兽人bl 关于相处的漫画 动漫女生黄漫画图片 小桃小栗漫画番外 男生的小丁丁漫画 少爷的仆人耽美漫画 滑冰类的漫画 虐美人韩国漫画28 公元3000年漫画全集 韩国《重新再爱》漫画 魔物少女漫画 魔物少女漫画 最新日本sm漫画大全 关于相处的漫画 漫画甘奈同学 女蜘蛛侠的色系漫画 咪咪漫画大全 大力神漫画兽人bl 《日常》全部漫画资源 最佳女主播漫画 姐姐和我漫画全集 最佳女主播漫画 《日常》全部漫画资源 公交男女漫画在线阅读 女子搭车被卖掉的漫画 美国西部的动物漫画 大力神漫画兽人bl 《日常》全部漫画资源 火影忍者腾迅漫画 公元3000年漫画全集 小桃小栗漫画番外 姐姐和我漫画全集 全宇宙奥特曼漫画大全 漫画甘奈同学 最新日本sm漫画大全 女蜘蛛侠的色系漫画 全宇宙奥特曼漫画大全 滑冰类的漫画 最新日本sm漫画大全 和老师一起漫画 女蜘蛛侠的色系漫画 虐美人韩国漫画28 萌系漫画少女 咪咪漫画大全 古代漫画图片封面 姐姐和我漫画全集 魔物少女漫画 女蜘蛛侠的色系漫画 美国西部的动物漫画 动漫女生黄漫画图片 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 青春期之回到学生时代 宁古塔典狱长 侵入你的梦 醉梦轮回 避难所下 百度 百度 百度 百度 百度 女子搭车被卖掉的漫画 韩国《重新再爱》漫画 少爷的仆人耽美漫画 韩国少女漫画大全校园 滑冰类的漫画 公元3000年漫画全集 咪咪漫画大全 公交男女漫画在线阅读 内涵漫画水中漂柳叶 公交男女漫画在线阅读 漫画甘奈同学 古代漫画图片封面 《日常》全部漫画资源 女子搭车被卖掉的漫画 男生的小丁丁漫画 漫画甘奈同学 萌系漫画少女 最新日本sm漫画大全 关于相处的漫画 美国西部的动物漫画 漫画甘奈同学 姐姐和我漫画全集 最佳女主播漫画 萌系漫画少女 全宇宙奥特曼漫画大全 火影忍者腾迅漫画 东北小平头漫画 《日常》全部漫画资源 小桃小栗漫画番外 和老师一起漫画 亚星官网 亚星官网 万利官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网