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
理化工具软件号码充值软件下载如何破解带机械码的软件下载红马甲股票软件无法连接安卓局域网ftp共享软件理化工具软件l351墨盒清零软件如何破解带机械码的软件下载网络轰炸电话软件2017万校云软件下载游戏直播摄像头软件下载理化工具软件爱剪辑 手机软件游戏直播摄像头软件下载如何破解带机械码的软件下载万校云软件下载微信二维码推广制作软件2017什么音乐软件免费下载2017什么音乐软件免费下载免费下载软件的网站哪个好用pher是什么软件做数学函数图的软件打印机吸墨软件2017现在哪家音乐软件好安卓局域网ftp共享软件安卓5.1定时开关机软件下载红马甲股票软件无法连接哪里可以ptshop软件下载免费下载软件的网站哪个好用爱剪辑 手机软件一座有着历史创伤的繁华都市,一片人心险恶的江湖,一群精明能干的警察,几个盘踞已久的社团,一个曾经大佬的儿子,如何在这波谲云诡、大风大浪中明哲保身?兄弟还是兄弟么?生意还是生意么?爱情还是爱情么?所有的道义、江湖、谋略、情爱,一副关于城市的地下江湖的历史画卷,都在这里慢慢展开......一次意外的事故,主角和同事流落荒岛,众人绝望之际,最后看主角一步步带领大家不断的从求生走向开拓...魂穿古代的陆子铭师承当世第一大派天剑山,好不容易逃出山门本想大展一番拳脚的他却意外的发现自己干啥啥不行,白嫖第一名。 于是在机缘巧合之下直接当起了一名乞丐,想凭借自己逆天的颜值将白嫖事业发扬光大。 哪曾想却意外卷入到了各种江湖厮杀,朝堂诡谲的阴谋算计之中。 “这位小娘子,本人只讨钱,不要饭!” “你可以拿钱羞辱我,但不能拿残羹冷炙侮辱我!” “什么?你才有病!你全家都有大病!” “tui,小娘皮长得怪带劲,就是素质低了些,脑袋也有些问题!”天下纷争,西京、启阳,北燕,鬼方四国争雄。西京国第一大江湖门派问刀门门主呼延燚,率天下门徒,纵横四海,征伐天下,无论是四国庙堂还是远涉江湖都无可避免地卷入其中。 ﹝本书抖音号∶周少爷的刀,67104207116﹞ 人在江湖身不由己。他的刀轻易不能出鞘,出鞘就得死人,杀人如同吹灯,什么时候开刀噬血?只在一念间。 世纪之末, 仙路湮灭,前路断绝,动乱时代,宇宙重开,少年叶天重生于异域,从此踏上仙武大道,悟五行,领阴阳,掌握极致力量。堤岸横空,生灵争渡,不详与诡异肆虐。 少年的背后是血与乱,是生灵的悲歌,少年的探寻的是万灵之希望。彳亍前行,万古寂然,永远在路上。余跃从2022年穿越会了玛雅文明时代,发现这居然是个可以修炼成神的时代……刚穿越成蜀山剑派大师兄,就因为勾结邪魔教妖女,被废去修为,剥夺身份,羁押在锁妖塔! 好在绝望之际,楚风获得神级签到系统! 在锁妖塔前签到,奖励剑体之首,【无始剑体】! 在三皇殿签到,奖励【轩辕剑】! 在三清殿签到,奖励【紫金红葫芦】! …… 楚风本着不无敌,不轻易出山的想法,苟在蜀山默默签到! 但当三千年前的绝世邪魔,邪剑仙率众攻上蜀山剑派时! 楚风挺身而出,负手而立,横剑身前! “前方蜀山,妖魔禁行!” 星运大陆,一个修习星能量求道成仙的世界。天地混沌,世界突现神秘空间,共有九重。来自第九空间的神秘力量,困住众神,颠覆世界。魔兽横行。 一个流浪子,从此走上了,修习星能量,拯救众神,使世界重新恢复和平的道路。这个战火纷飞的时代 没有正义、也没有邪恶,只有无止境的杀戮与复仇 没有光明、也没有黑暗,只有道不尽的无奈和愤怒 罗恩·卡史诺连列斯 —— 黑夜女神的召唤师,有着过人的法术天赋,本应在军中成就一翻事业,却只求安乐、无忧无虑地过日子。他讨厌战争,热爱旅游,喜欢自由自在的感觉。随着禁忌之书《诸神的日记》浮现于世,古神的秘密渐渐被揭晓,当信仰破灭时,罗恩将如何决择呢? 凯恩·列顿 —— 太阳神辛纳的圣骑士,自信爆棚的年轻上尉。正义,善良的他深受上司赏识在军队中扶摇直上,与他同期出身,一同打拼的战友却一个接一个的倒下。最终他扎进骑兵领主之列,事业攀上高峰。身处军中,他看尽了皇室贵族的丑陋和迂腐。当立宪、共和的声音在帝国蔓延时,凯恩将如何决择呢? 滴血的长矛、飘烟的枪管终将指向何方,在漫天烽火的日子里,谁也无法掌握自己的命运。
游戏帝国:从逼疯玩家开始 虚拟狩猎 孤刀出鞘 Re:我与妹妹们的冒险关 群星挑战之星神之路 原神小说 我,自混沌来 因山之名 误入传奇世界 法师升级大冒险 漫威:漫画家也想拯救世界 近身兵王 末世为谁而鸣 六道天地 灾变降临:我能模拟生存率 熬死所有人,我终于无敌了 南风过境迁 异能一本书 暗雨之黑化 亡灵支配者 悬挑钢管脚手架的计算软件 万校云软件下载 微信二维码推广制作软件 2017什么音乐软件免费下载 悬挑钢管脚手架的计算软件 找运输车的软件 虎牙app游戏直播怎么直播软件 王者荣耀弹窗软件 安卓5.1定时开关机软件下载 爱剪辑 手机软件 打印机吸墨软件 打印机吸墨软件 2017现在哪家音乐软件好 万校云软件下载 uda软件狗复制教程 安卓局域网ftp共享软件 网购比价软件哪个好手机卡 安卓5.1定时开关机软件下载 号码充值软件下载 理化工具软件 重复文件整理软件360 如何破解带机械码的软件下载 号码充值软件下载 做数学函数图的软件 王者荣耀弹窗软件 2017现在哪家音乐软件好 安卓5.1定时开关机软件下载 号码充值软件下载 pher是什么软件 安卓5.1定时开关机软件下载 2017什么音乐软件免费下载 重复文件整理软件360 红马甲股票软件无法连接 理化工具软件 2017现在哪家音乐软件好 安卓局域网ftp共享软件 哪个软件的新闻时评好 虎牙app游戏直播怎么直播软件 2017现在哪家音乐软件好 哪个软件的新闻时评好 安卓局域网ftp共享软件 免费音乐剪切软件下载 免费下载软件的网站哪个好用 网购比价软件哪个好手机卡 游戏直播摄像头软件下载 重复文件整理软件360 打印机吸墨软件 安卓局域网ftp共享软件 cdrx8转低版本 小软件 l351墨盒清零软件 亚星游戏官网 亚星官网 亚星官网 亚星官网 亚星官网 天轮回道回忆录 一怒称帝 玄色录之古色事记 切面玄话 穿越之我的系统不对劲 万利官网 欧博官网 百家乐官网 万利官网 欧博官网 找运输车的软件 uda软件狗复制教程 王者荣耀弹窗软件 微信二维码推广制作软件 cdrx8转低版本 小软件 爱剪辑 手机软件 哪个软件的新闻时评好 网购比价软件哪个好手机卡 重复文件整理软件360 找运输车的软件 找运输车的软件 免费音乐剪切软件下载 爱剪辑 手机软件 游戏直播摄像头软件下载 网购比价软件哪个好手机卡 电子邮件控制软件有哪些 安卓5.1定时开关机软件下载 pher是什么软件 如何破解带机械码的软件下载 微信二维码推广制作软件 2017现在哪家音乐软件好 红马甲股票软件无法连接 安卓5.1定时开关机软件下载 重复文件整理软件360 理化工具软件 找运输车的软件 微信二维码推广制作软件 王者荣耀弹窗软件 免费音乐剪切软件下载 做数学函数图的软件