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
ioio舞蹈歌词一首歌歌词是一首空间背景乐歌词那就走吧忘怀那青春美丽衣裳 歌词园游会歌词下载歌词:沙哑ioio舞蹈歌词太平歌词 三打白骨精美丽衣裳 歌词新一天歌词歌词 我从未怀疑过你歌词中国吉祥吉祥中国ioio舞蹈歌词歌词是不怕风雨 擦干歌词中国吉祥吉祥中国美丽衣裳 歌词歌词 我从未怀疑过你下载你懂得歌词完整版超口爱歌词超口爱歌词赏析勇敢的心歌词明天花开花败 没有无奈 生活就要实实在在 歌词 cctv2歌词兄弟无数阿妈的奶茶汉语歌词ifyou杨承熹歌词意思歌词:沙哑desp歌词园游会歌词下载周华健朋友lrc歌词天父是我好爸爸歌词歌词是不怕风雨 擦干古星纪2085年,古星科技日新月异,稳步向前。随着科技的发展,古星人的眼界不再仅仅局限于本星系,越来越向往宇宙其他星系的壮丽景观,期待着发现其他生命文明。在古星人向往着宇宙深空的同时,一场毁灭性的灾难也悄然降临。 “掌门,古星..古星出事了!”【传统玄幻+无系统+剑修+无后宫+不无脑】 百年后,一位手拿残剑的少年走进了人们的视野之中,他笑看风云志,一剑破万象,开合之间竟然有当年那位的影子……秦缘穿越到全民模拟人生的世界: 如果改变人生轨迹打破人生限制,可以成为人上人;如若失败,只能当个寿命只有五十多岁的下等人,终生贫苦。 毕业典礼:觉醒贤者。 贤者模式:可以推演一切。 模式时能力越强,推演越详细,成功率越高。 一世:【重生末世,觉醒超级异能,二十岁基因变异死了。】 “贤者模式开启,推演抑制基因变异的方法。 【你攻克基因突变,成为世界主宰,拯救人类开创修仙科技时代,寿终正寝。】 【模拟结束:贤者模式增强一倍、你获得三滴龙血、你获得灵米提供资格、你获得一次模拟机会、你获得......】 某世:【18岁的你,被女帝逼婚,虐待致死。】 “贤者模式开启,推演征服女帝方法。” 【女帝唱征服,获得最高评价。奖励:阴阳锻体决、获得….】 同届新人,纷纷成为普通人,苟延残喘。 此时:异族入侵基地时。 秦缘站出来,扮演异能强者,持仙法只手遮天。 这天: 异世入侵主世界。 秦缘仅仅一句话,万族臣服。 “怎么?征服不够,想被灭世?”四方界域,广袤浩瀚,亿万星球,无尽大陆。传闻,在第四界域的尽头,隐藏着惊天之密,能使成为四方界域的掌控者,长生万右。少年李南风得到神秘玉剑,修无上功法,习太初阵术,炼灵丹妙药。从微末中崛起,斩古帝、劈祖龙,闯到第四界域,于界域尽头证得的四域神尊,名垂千史。他是白狼战队队长、是让犯罪分子闻风丧胆的赏金猎人夜枭没人知道他是身世,没人知道他是来历他仿佛是凭空出现的一样,在一次任务中被敌人设计死于爆中穿越到了柯南世界。天下纷争,西京、启阳,北燕,鬼方四国争雄。西京国第一大江湖门派问刀门门主呼延燚,率天下门徒,纵横四海,征伐天下,无论是四国庙堂还是远涉江湖都无可避免地卷入其中。神秘而特殊的力量因一次偶然降临到一个人身上,千百年后,这股力量随着血脉流传至现代。普通的十七岁少年陆云汐,在亲眼目睹这个世界的真相后,决定像前辈一样,拿起刀枪,在与黑暗势力作斗争的过程中明白了生命的意义与自己肩上的责任,最终在付出巨大的代价后成功守卫了人类的未来。修仙和历史共存,里面涉及的历史典故和俗语比较多。  【女帝】【开局无敌】【单女主狗粮】【摊牌】   本书又名《因为太宠娘子,被迫做无敌反派》   顾澜穿越玄幻小说,成为一名配角书生。   还多了一位貌美如花的小娇妻。   本想安稳苟住,凭借原著剧情躲开各路挂壁,和娘子相守一世。   可偏偏加载了文抄读书系统!   只要读书抄书,就能提取修为,成圣成神!   由于太过无敌,顾澜出门随便就碾死了大反派,各路气运之子气运之女争相认主!   实力起飞的同时,仕途也是邪了门的顺遂!   这一日。   顾澜高中状元郎,入殿觐见,却发现幕帘后那绝美女帝十分眼熟!   “娘子?”   “相公,穿上龙袍就不识得朕了吗?”   “......”   从此,全天下都知道了这对绝世夫妻。   原著男主角:“他都成天帝了,我才武之力三段,这怎么玩?”   【简介无力,全文爆爽】天道俯视众生,凝聚世间万法打造九重天阙,与之共鸣者可获天赐命魂,踏上修行登天之路。 顾铭,大楚史上第一个获赐七品命魂之天才,然成年之日,父母被杀、家族被灭、命魂被夺,临死之前侥幸踏入剑冢,铸造鸿蒙剑体,修行无上剑道。两年之后,顾铭离开剑冢重返世间,踏上剑道至尊之路,一剑可斩仇敌、可破九天、可镇诸天万域。
修仙:家族崛起 网恋女友不是人 双眼往前看 小姑娘,大女人 敬亭山访谈录 X世界的记忆 我们纯真的青春番外 摩羯疑云惊魂时速 奶爸的异界幸福生活 邪灵世界:我以肉身横推此世 上苍尘花落 紫金之路:重生黄曼巴 硝烟下的缄默者 营救公主吧 侦破t 皇霸天外天 长安鉴 诡循环:每天被邪祟杀一次 极道使魔 我的二十岁少年时代 歌词有sorry sorry sorry sorry是韩国女生唱的 单身歌词大全 下载你懂得歌词完整版 超口爱歌词 歌词有sorry sorry sorry sorry是韩国女生唱的 越剧梁山伯楼台会歌词 西游记女儿国歌词谱 姑苏风光 歌词 desp歌词 歌词是不怕风雨 擦干 阿妈的奶茶汉语歌词 阿妈的奶茶汉语歌词 ifyou杨承熹歌词意思 歌词 我从未怀疑过你 i love you myyesterday歌词翻译 歌词:沙哑 西游记女儿国歌词谱 desp歌词 明天花开花败 没有无奈 生活就要实实在在 歌词 cctv2 ioio舞蹈歌词 单身歌词大全 美丽衣裳 歌词 一首歌歌词是一首空间背景乐歌词那就走吧忘怀那青春 歌词兄弟无数 姑苏风光 歌词 ifyou杨承熹歌词意思 desp歌词 一首歌歌词是一首空间背景乐歌词那就走吧忘怀那青春 明天花开花败 没有无奈 生活就要实实在在 歌词 cctv2 desp歌词 超口爱歌词 单身歌词大全 园游会歌词下载 ioio舞蹈歌词 ifyou杨承熹歌词意思 歌词:沙哑 耶稣耶稣赞美之泉歌词 西游记女儿国歌词谱 ifyou杨承熹歌词意思 耶稣耶稣赞美之泉歌词 歌词:沙哑 伤痛 伤痛歌词 赏析勇敢的心歌词 歌曲把酒倒满歌词打印 歌词兄弟无数 单身歌词大全 阿妈的奶茶汉语歌词 园游会歌词下载 天父是我好爸爸歌词 太平歌词 三打白骨精 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 战婿狂医 恐怖复苏:我召唤了王者军团 风起龙城 全球尸潮:开局获得军火库 为救女儿自制药,攻克绝症 百度 百度 百度 百度 百度 歌词有sorry sorry sorry sorry是韩国女生唱的 歌词:沙哑 姑苏风光 歌词 美丽衣裳 歌词 西游记女儿国歌词谱 山在虚无缥缈间 歌词分析 歌词中国吉祥吉祥中国 i love you myyesterday歌词翻译 越剧梁山伯楼台会歌词 越剧梁山伯楼台会歌词 明天花开花败 没有无奈 生活就要实实在在 歌词 cctv2 一首歌歌词是一首空间背景乐歌词那就走吧忘怀那青春 阿妈的奶茶汉语歌词 赏析勇敢的心歌词 园游会歌词下载 太平歌词 三打白骨精 新一天歌词 歌词 我从未怀疑过你 越剧梁山伯楼台会歌词 太平歌词 三打白骨精 i love you myyesterday歌词翻译 明天花开花败 没有无奈 生活就要实实在在 歌词 cctv2 歌词兄弟无数 歌词兄弟无数 desp歌词 越剧梁山伯楼台会歌词 i love you myyesterday歌词翻译 单身歌词大全 超口爱歌词 下载你懂得歌词完整版 亚星官网 亚星官网 万利官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网