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
头像粉嫩少女古风微信头像图片大全动漫帅哥被虐头像情侣变态头像抱图情侣头像头像粉嫩动漫头像半身彩色动漫帅哥被虐头像黑白头像性感女生2017头像最新版欧美 甜美气质大胸成熟美女头像动漫帅哥被虐头像qq头像男生非主流男女纹身图片大全图片大全图片气质大胸成熟美女头像可爱自拍女图片头像女生2017头像最新版欧美 甜美黑白吊带女头像图片红色吉利的微信头像红色吉利的微信头像亲吻微信头像图片好看的半裸头像男红色吉利的微信头像黑白头像性感女生中国女明星带帽子头像微信头像放弃图片大全海贼王多人头像图片大全微信头像放弃图片大全中国女明星带帽子头像亲吻微信头像图片qq头像男生非主流男女纹身图片大全图片大全图片上一秒还在午休的我 下一秒我睁开眼睛发现一切都变得陌生 我新买没有一个星期的空调呢,没有你我该怎么活 不对,现在我应该在梦里。 可是为什么被打会这么疼 够了,住手。想知道是不是做梦你不会打自己呀 我一脸无语看着刚认识不久的网红小姐姐【模拟人生+三国故事+兄弟情义+人情世故+地盘争霸+轻松爽文,你想看的我这儿都有!】 重生三国成为刘封,获得模拟系统,内有义父刘备处心积虑要找借口弄死他给亲儿子刘禅腾地方,外有曹魏东吴等敌对势力虎视眈眈,且看刘封如何通过一次次模拟失败人生吸取经验,然后在现实中逆风翻盘,成为再兴大汉的英武帝王……少年从小厄运缠身,身边人一个个离去,阴差阳错来到异世大陆,被人救治,却给救人者带来不幸,自己也再次涉险,从此开始流浪,在流浪中修炼,在流浪中成长,最终......原本平常的人间忽然与灵魂有了直接联系,各种灵魂武者随之诞生。。主角李亮也碰巧的成为一名灵魂武者,开启他的灵魂之旅。。。虚空的注视下,万中无一的人类点燃火种。林宵从混沌中醒来,携带卡师指南,目睹这个世界:巨龙在白日创世,诸神在黄昏长眠,人类在黑夜抗争。 通天高塔,寡头垄断,机械飞艇,虚拟世界,光轮摩托,卡片具现……火种生生不熄,太阳照常升起,这是一段关于 “卡师”的传奇。这是互联网金融行业的老司机重生后,由一名菜鸟新人,在职场披荆斩棘,一路高升,成长为行业一方大佬的故事; 你可以把小说当做22年爽版职场剧《未生》。面对冷酷的职场现实,用行业新人的眼光来展现互联网金融行业的人生百态...... 22周岁的周致远,具备重生信息优势的他,更像加强版的张克莱; 他扫除金融毒瘤,重新制定行业准则; 他抓住机遇,攥取巨额财富,不忘回馈社会; 他年少多金,心怀理想,收获御姐们的青睐; 他步步为营,改变命运,填补人生遗憾......一剑入梦!一剑回首! 少年一剑步入仙侠世界!一剑可斩上苍!一剑可破下域!从平庸的少年到天下无双的剑神!他站在俯视人世间的山巅!一剑挥出……这竟然……是……来自二十一世纪生患绝症的企业家,为求得一线生机接受了技术并不成熟记忆转载实验,意外让他的记忆来到了1987年这个国内近代商业的启蒙期,是成为时代的弄潮儿还是那划破夜空的流星。 本书内容以商业故事为主,无太多情感戏。故事发生在一个我们平行的世界,现实生活中的李唐,是一个外人看起来生活还过得去的80后老板,但是因为意外,强撑了两年的李唐终于坚持不下去了,无奈解散公司; 奈何在当天,就被一辆渣土车撞回了2001年,回到十多年前的李唐,因为带着成年人的思维,面临重新选择,他该何去何从林阳穿越三国,成为济世堂杂役,同时得到神医豪强系统,拥有现代医学仪器,开局直接震惊华佗,拜其为师! 曹操:林阳,你医术精湛,谋略竟然也如此惊人?真乃奇人! 诸葛亮:草船借箭,竟然借的都是火箭?林阳还是个人了? 孙权:林阳究竟是何许人也?竟然如此神鬼莫测! 周瑜:此人谋略在我之上,还把我的心上人小乔抢走了,哎,既生瑜,何生阳? 华佗:师父不仅医术天下无双,谋略更是天下第一! 三国群英:林阳难道是天选之子?竟然发明了这么多的远程火力?这岂不是天下无敌了? 林阳:咳咳,小老弟们,不要大惊小怪,都是基本操作! 本小说及人物纯属虚构,如有雷同,纯属巧合,切勿模仿!
将军眉 商武之神 朋友请自重 成为天师 夺夜之光 养成柳神,我成为无上神帝 转生之都市霸主 无双重创 过去的三分之一 玄斗武魂 向死者书 生而游戏 我名:恒生 钱小亮种田笔记 返祖我的先祖是曹孟德 信了吧!我带着高冷校花去捞尸 疯魔剑圣斩天下 签到元宇宙,从意念建模开始无敌 最贼修仙者联盟 正道发光 斗地主头像高清图 男人侧面吸烟忧伤头像 黑白吊带女头像图片 抱图情侣头像 斗地主头像高清图 头像女生tebie 黑白吊带女头像图片 漫画粉头像 海贼王多人头像图片大全 好看头像真人头像图片 头像图片超拽卡通头像带字图片大全 头像图片超拽卡通头像带字图片大全 忧伤头像男生动漫头像 男人侧面吸烟忧伤头像 头像粉嫩 抱图情侣头像 路飞 笑 头像 海贼王多人头像图片大全 霸气冷酷的女生头像 动漫帅哥被虐头像 男人侧面吸烟忧伤头像 可爱自拍女图片头像女生 霸气冷酷的女生头像 气质大胸成熟美女头像 2017头像最新版欧美 甜美 忧伤头像男生动漫头像 海贼王多人头像图片大全 少女古风微信头像图片大全 霸气冷酷的女生头像 海贼王多人头像图片大全 抱图情侣头像 全黑男生侧脸动漫头像 情侣变态头像 头像粉嫩 中国女明星带帽子头像 微信头像放弃图片大全 情侣变态头像 黑白吊带女头像图片 忧伤头像男生动漫头像 可爱自拍女图片头像女生 微信头像放弃图片大全 好看头像真人头像图片 qq头像男头戴口罩 路飞 笑 头像 气质大胸成熟美女头像 全黑男生侧脸动漫头像 头像图片超拽卡通头像带字图片大全 微信头像放弃图片大全 忧伤头像男生动漫头像 动漫头像半身彩色 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 我在大汉守夜养鬼 爱至深!爱至重 往事如离梦 对不起小霞 白契 澳门葡京官网 AG真人 快连下载 澳门葡京官网 欧博官网 全黑男生侧脸动漫头像 qq头像男头戴口罩 动漫头像半身彩色 动漫头像半身彩色 可爱自拍女图片头像女生 情侣变态头像 亲吻微信头像图片 气质大胸成熟美女头像 微信头像放弃图片大全 qq头像火星 黑白头像性感女生 头像粉嫩 红色吉利的微信头像 路飞 笑 头像 可爱自拍女图片头像女生 少女古风微信头像图片大全 qq头像男头戴口罩 qq头像男头戴口罩 动漫头像半身彩色 qq头像火星 动漫帅哥被虐头像 可爱自拍女图片头像女生 忧伤头像男生动漫头像 qq头像男头戴口罩 情侣变态头像 抱图情侣头像 2017头像最新版欧美 甜美 霸气冷酷的女生头像 忧伤头像男生动漫头像 黑白吊带女头像图片