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
大海lbc歌词苏格兰舞曲歌词诗歌词一千万个理由歌词大明咒歌词白球鞋大海lbc歌词《遗忘》歌词诗歌词一千万个理由直到开始我找到你歌词长大的烦恼的歌词歌词顶天立地 努力奋斗大海lbc歌词手指缝 歌曲中文歌词歌词顶天立地 努力奋斗诗歌词一千万个理由长大的烦恼的歌词大张伟大摇大摆迎春来歌词歌词因为爱情的甜蜜歌词因为爱情的甜蜜这样累歌词歌词中有我最爱的你啊歌词因为爱情的甜蜜歌词中有小蛮腰的歌电击小子手足情深歌词歌词白球鞋女驸马歌词和谱子歌词大明咒歌词爱情美酒朱昌耀二胡曲放风筝歌词歌谱手指缝 歌曲中文歌词[无限流+灵异+悬疑+鬼怪。] 数十年前,袁文锦的爷爷因为一己私欲,与恶鬼做交易。 把自己孙子献祭给它,便保他一生福贵。 在袁文锦出事后他的爷爷便反悔,他要保下袁文锦。他借助黑暗的力量把袁文锦与一个神秘的地方链接起来。 恶鬼恐惧那力量,一怒之下便屠了他满门。只留下袁文锦一人苟活在世。 封林是一个在北京潘家园旧货市场开旧物店的小老板,一次在给店里的老房屋装修的机会,竟然在家里墙壁地下暗格发现一个密室,不太大的密室角落里有着一口上了锁的红色的木箱子,盒子打开后里面有着几样东西,一块巴掌大纯金的腰牌。 一本非常破旧的遁甲巫术古书, 还有着一本记录了很多秘事的明朝古书,还有一张残缺不全的地图,箱子里面藏着很多的秘密,让他知道了自己的家族竟然是一个传奇盗墓家族的后人 从古至今的家族秘密缓缓的被揭开,父亲的突然消失,也与此事有关,是为了寻找哪些传说中的东西。 自己兄弟的回归,退役特种兵赵雷,去追寻着父亲的脚步去寻找那传说中的古遗迹,不得不踏入那些恐怖之地。 入活人的禁区,与僵尸斗法,与活人斗智,有一张尸面的鬼狐仙,荒冢野坟墓里的媚女,害人的白皮千年老狸子,披着美女人皮的行尸走肉,几十年难得一见沉没在海里的幽灵鬼船。 一张残破不全的地图,一截刻满符文的龙骨,到底藏着什么秘密? 冥冥之中自有天意,穿越者何必天下无敌。人心正,自有天助。召唤师,万兽朝宗…… 战士等级:初级、中级、高级、青铜、黄铜、黑铁、白银、黄金、圣战士 法师等级:学徒、一级——六级、七级大魔法师、八级魔导师、九级圣魔导师 召唤兽法师:无等级区分 意外穿越大秦,成为八公子嬴子夜,觉醒神级阅读系统,只要读书就变强!只要读书就能获得无限奖励,只要读书便可入圣! 为此,嬴子夜终日闭关读书,兢兢业业,不招灾,不惹祸。 终有一日! 始皇重危,意欲东巡求长生。 墨家蠢蠢欲动。 六国余孽准备造反。 赵高意欲篡改遗诏。 …… 嬴子夜知道,这时候不能继续藏了!再藏大秦不复、自己也将被胡亥杀死! “扮猪吃虎十余年,今日本公子不藏了!” “今日,本公子以读书入圣!一剑斩天!” “传令,三千大雪龙骑军出动!” “传令,铁浮屠出动!” “……” 拥有【满级肉身】的苏叶,穿越异界,成为显魔宗疯魔院的杂役弟子! 被女魔头吊着打,获得天魔神掌。 被老魔头拿头撞,获得种魔大法。 被小魔头当沙包,获得霸王神斩。 …… 在疯魔院当杂役这些年。 有郁郁寡欢的师妹,来疯魔院供奉魔头,经苏叶指点,修成九世女帝! 有身世卑微的凡人,来疯魔院供奉魔头,经苏叶调教,成为天下共尊的魔皇! 有朝廷弃徒的皇子,来疯魔院供奉魔头,经苏叶点拨,成为横扫大陆的一代帝王! * 六十年后,魔道天榜揭示,排序魔道强者,苏叶独占鳌头! 榜单备注——神魔共主! ……秦煜魂穿大唐,激活了个说书系统,却没想到开局任务就说【长生诀】。 秦煜:在大唐说长生诀?系统你怕不是嫌我死的太慢!你咋不叫我去讲玄武门之变? 系统:那就讲玄武门之变,要么现在死! 秦煜:我也不是怕死,就是爱讲玄武门之变! 李二:听个书,结果听到揭秘玄武门之变!这厮当真是不怕死呀 班里的美少女转校生告诉我,我们已经被卷入了一场狼人杀游戏当中,随时会死? 可是......为什么我的狼人杀,画风不一样? 深夜,无人居住的房间里传出了诡异的声音, 黑暗的海洋馆深处传来了阵阵婴儿的啼哭声, 桃花盛开的小村庄在黑夜里露出了血色的獠牙...... 我能不玩了吗......重生在了天道即将崩溃,鸿钧三清远走寻到,天地王母受援以进,现代科技飞速发展,对于修行却是半开放的世界,江屹煊被选为了复苏天道的棋子。 对于这些,江屹煊有话说:“我只想把仙丹当糖豆,把八九玄功当炼体术,让亲人无病无灾。用真火来炒菜,用灵泉当家庭饮用水,让石材释放出它最美味的口感。对于复苏天道什么的,谁爱作谁作,我没兴趣!”大梦一场,穿越到1987年; 一次车祸,梦魇中喝了忘忧水; 一只修罗手套,重生到五百年前; 古墓中激活了古龙珠,唤醒七色混沌葫芦,开启系统传奇之路; 十五万铁甲齐上阵,竟无一是男儿身; 心念起,万水千山~ 心念灭,沧海桑田~ 一念~可成众生~ 一念~可成天神~ 红尘砺剑心,沧海一笑间, 乾坤一剑平,万古啸青天, 笑傲宇宙巅,星空化自在~~这是一部浸透着战火硝烟的热血之作。民夫吴顶牛的无心之举,让两辆日军坦克陷入死地。二十九军某部连长任广正,正打算消灭来犯之敌,却接到帮日军推坦克的荒唐命令。坦克事件,成为任广正、邢百里和吴顶牛多年恩怨的导火线。 家国沦亡,吴顶牛和任广正先后加入到邢百里成立的救国军中去。救国军是一支最不被看好的弱小武装。吴顶牛的奇招怪招,任广正的奋勇厮杀,让救国军一步步走向辉煌的胜利。胜利带来的却是内部的分裂和敌视。任广正暗杀吴顶牛未遂,于是率部分裂叛逃,投奔国军。吴顶牛和救国军则接受了八路军的改编 1943年,新海惨案发生,黄骅被杀,谁是幕后真凶
我有9000万亿神豪基金 古神林昊天 白日暗流 鬼魅狂生 蛊道小子 末世炽焰 超凡:我体内寄居着邪神 仰望山村 旧世界消亡史 海贼之五雷正法 物种灭绝 直播:我做网红那些年 心岛穿梭 人工智能之傀儡大宗师 网游之神级幸运 无编军人 我有一百零八个学姐 我真没想过要重生 权权之心 左手魔法右手修仙 我们不是情侣歌词 mc深七 太阳明天照样升起歌词 大张伟大摇大摆迎春来歌词 歌词因为爱情的甜蜜 我们不是情侣歌词 mc深七 我的梦李阳歌词 不要把我的心带走歌词 儿童歌曲寻找小王子歌词 女驸马歌词和谱子 手指缝 歌曲中文歌词 歌词中有小蛮腰的歌 歌词中有小蛮腰的歌 电击小子手足情深歌词 长大的烦恼的歌词 儿童歌词带印度尼西亚 歌词白球鞋 不要把我的心带走歌词 女驸马歌词和谱子 歌词中有我最爱的你啊 大海lbc歌词 太阳明天照样升起歌词 诗歌词一千万个理由 苏格兰舞曲歌词 歌词为请你说爱我的歌名 儿童歌曲寻找小王子歌词 电击小子手足情深歌词 女驸马歌词和谱子 苏格兰舞曲歌词 歌词中有我最爱的你啊 女驸马歌词和谱子 歌词因为爱情的甜蜜 太阳明天照样升起歌词 歌词大明咒 大海lbc歌词 电击小子手足情深歌词 歌词白球鞋 老板来了片尾曲歌词 不要把我的心带走歌词 电击小子手足情深歌词 老板来了片尾曲歌词 歌词白球鞋 保卫黄河朗诵歌词 这样累歌词 小太阳小贱歌词 歌词为请你说爱我的歌名 太阳明天照样升起歌词 歌词中有小蛮腰的歌 歌词大明咒 朱昌耀二胡曲放风筝歌词歌谱 《遗忘》歌词 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 娱乐:沉睡十二年,醒来依旧是神! 我在异世成魔王 仙始修魔 染指昙花香 星穹之子 亚星管理平台 葡京官网 AG真人 亚星管理平台 万利官网 苏格兰舞曲歌词 歌词中有小蛮腰的歌 诗歌词一千万个理由 儿童歌曲寻找小王子歌词 耶稣基督不带谱灵歌词 手指缝 歌曲中文歌词 歌词白球鞋 我们不是情侣歌词 mc深七 电击小子手足情深歌词 歌词因为爱情的甜蜜 歌词为请你说爱我的歌名 歌词白球鞋 歌词中有小蛮腰的歌 歌词为请你说爱我的歌名 长大的烦恼的歌词 太阳明天照样升起歌词 诗歌词一千万个理由 儿童歌词带印度尼西亚 保卫黄河朗诵歌词 苏格兰舞曲歌词 女驸马歌词和谱子 我们不是情侣歌词 mc深七 《遗忘》歌词 歌词大明咒 歌词顶天立地 努力奋斗 大张伟大摇大摆迎春来歌词 小太阳小贱歌词 大张伟大摇大摆迎春来歌词 这样累歌词 不要把我的心带走歌词