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
情侣头像小狗图片搞怪社会哥头像男人走在路上得头像女生吸烟者qq头像大全漫画悲伤头像情侣头像小狗图片搞怪听歌 卡通头像男人走在路上得头像调皮头像带帽子和口罩的头像祝福的图片头像情侣头像小狗图片搞怪五组图片搞笑图片头像祝福的图片头像男人走在路上得头像可爱花季少女头像00后透明微信头像英伦非主流图片头像女生头像漫画悲伤头像萌萌的小女生照片头像卡通头像萝莉头像英伦非主流图片头像女生头像调皮头像二次元头简单背影头像韩国情侣头像背影白色头发女生的动漫头像图片大全韩国情侣头像背影小狮子高清动漫头像萌萌的小女生照片头像卡通头像手机头像图片花海星云宇宙环宇星海第一强者龙海,寻找百万年前,追杀上古邪魔的两位古神界护法祖师爷,而进入了其他宇宙位面空间之中,嫉恶如仇,不畏艰险,勇往直前是龙海的本心,在七大宇宙空间里,行侠仗义,救苦救难,发扬着大无畏精神……就在邪魔启动了轮回灭世的元器时,世间亿万生灵即将涂炭,所有人面对死亡也无能为力,这时龙海出现,利用两把终极元器才打破了轮回之刃,叫停了湮灭轮回的力量,谁曾想这祸害的源头竟然是创造了宇宙万物空间的造物主“神祖”的邪恶怨念所化,真是正邪不两立却出自一处!都是神祖的思想而已!正义和邪恶都是神祖体内的思维万象,演变出来的真实大能力!众人知道后都是无奈的摇头,只因为人类都是凡人,只有个别的修炼者得到了神祖真传,成了世间的大能为者,统治着整个宇宙空间和所有的环宇星海,龙海最终成了超越神祖境界的人族强者,达到了无极之境,废除了神祖的传承,站在了环宇之巅最高处! 本书就是《被逼成圣》的续集故事!第一风辰集团董事长的女儿离家出走,意外碰上身份不明的热血少年,在弱肉强食的年代究竟会擦出怎样的火花呢?异界的国度妖魔苏醒,那里即将面临生死劫难,轩辕庄就是摆脱生死劫难的寄托。轩辕庄自己在非凡经历得以砥砺成长。 趁着夜色我想呐喊,却又寂静无声。 我到底该是一缕风,还是一株草? 我只是想我是一缕风,不被世俗所束缚。可我终究是活的太过于理想化了,我只能是一株草,一株不被定义的草,一株早已腐烂的草,没有根茎,无法扎根,且哪儿也飞不去的草。 我想我早该抛弃我那不切实际的理想主义,好好睡一觉,天总会亮的。 因为没有人会在天亮时伤感。民国初年,江沪青年司机玄狐,在驾驶车辆走夜路时,因碰撞阴魂煞气而丧命! 在九重天阴司府投胎审核寺,玄狐的鬼魂遇到此处监官铭难改等神仙,在进行投胎运程实验游戏,玄狐有幸被挑选参加这个游戏! 从此,玄狐开始扑朔迷离、危机四伏、艰苦卓绝、无穷无尽的换回磨难历程......她宇文曼——大夏国第一个女皇帝。 坐上龙椅的第一天起,她就成为了不折不扣的傀儡。 本来想着就这样混吃等死,结果突然的一场兵变,连傀儡都做不成了...... 当她再一次夺回皇位时,世人对她依然缺乏认同。 在这个群雄争霸的年代,最弱的女皇,居然在所有人眼皮底下捡了个大便宜。 如果治理这个天下能算作便宜的话... 断壁残垣、饿殍满地、民不聊生... 战争带来了至高皇权,也带来了遍地枯骨。 宇文曼正襟危坐,身边是刚刚被册封的“国姓爷”文泰,殿外站着忠心耿耿、整齐成排的士兵,台阶下是一群诚惶诚恐的大臣。 大臣们曾经跪拜过她,又肆意污蔑她...如今为了日子过得去,只好颤颤巍巍的再次向女皇磕头。 好在女皇的心思还不在他们身上。 因为她是皇帝,所以没有退路——进则生,退必死! 奇迹不会一次又一次发生! 她必须整顿纲纪。 必须让难民归乡、让荒废的良田重新长出庄稼。 必须挥舞利剑,赶走那些盘踞中原的豺狼虎豹......二狗的人生陆冲穿越到与母星似是而非的高武蓝星,觉醒武功自动修炼系统。 纳气诀三百六十五天不间断修炼,修为没有瓶颈; 开碑手知耻后勇,修炼速度翻倍,突破到大成; 金钟罩觉得自己还能抢救,自行推演成为神级武学…… 全球进化,异兽复苏,都是我的菜; 外星文明即将入侵,倒计时十年,请准备迎接; 神明百年后降临,届时将奴役蓝星…… 蓝星只是一级文明? 外星异族:谁说的,站出来试试! 万族入侵,华夏禁行!叶辰懂医术,会古武,下山后的他,还在幻想着自己逍遥纵横都市,吊打一切不服! 万万没想到,参加自己婚礼的时候,新郎竟然不是他……为了救人,穿越古代的赵亨义娶了个克夫的丧门星,一同带回家的,还有丧门星那六个拖油瓶妹妹。 什么?一个媳妇六个小姨子养不活?不存在的! 看我带着乡亲们种田打猎搞副业,偷偷发展高科技,昂首阔步新天地! 朝廷腐朽,皇帝昏庸,不给百姓留活路? 那就掀翻这鸟朝廷,杀了那狗皇帝! 草原蛮族年年寇边,岛国强盗肆虐海疆,西方贼人觊觎中原? 来,豺狼虎豹往这看,看看你亨义爷爷手里这杆二十连响的火铳它帅不帅!
边疆:边防军 南国穿越狂兵 诛神武 梵妮的旅行 朽魂万骨枯 最后的永恒战士 落入被平分的世界 最强战神之末日求生 冒险者的故事 对话日常 嘘,你背后有鬼神 我师父全都死光光了 人生微尘 开局契约麻雀,签到成凤凰 全能小神农 星域神启 血色演绎 末世降临:打工人崛起! 用双手挖矿 成就无上仙位 白色头发女生的动漫头像图片大全 可爱花季少女头像00后 邪笑头像 漫画悲伤头像 社会哥头像 小狮子高清动漫头像 邪笑头像 头像女生可爱字 海边情侣女头像 五组图片搞笑图片头像 qq闪动头像 男生 qq闪动头像 男生 二次元头简单背影头像 可爱花季少女头像00后 情侣头像小狗图片搞怪 韩国情侣头像背影 搜索头像 白色头发女生的动漫头像图片大全 男生意境头像 男人走在路上得头像 可爱花季少女头像00后 男人走在路上得头像 男生意境头像 英伦非主流图片头像女生头像 带帽子和口罩的头像 成熟点女生头像贴吧 白色头发女生的动漫头像图片大全 男生意境头像 男生意境头像 海边情侣女头像 漫画悲伤头像 Love的黑色头像 女生吸烟者qq头像大全 情侣头像小狗图片搞怪 二次元头简单背影头像 韩国情侣头像背影 女生吸烟者qq头像大全 邪笑头像 二次元头简单背影头像 黑白抽烟动漫头像 男生头像 韩国情侣头像背影 头像女生可爱字 萌萌的小女生照片头像卡通头像 搜索头像 祝福的图片头像 Love的黑色头像 qq闪动头像 男生 韩国情侣头像背影 成熟点女生头像贴吧 透明微信头像 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 穿越火线之电竞传奇 大宋必须浪 最强战神之末日求生 冒险者的故事 都市之我被迫成神 欧博游戏官网 皇冠登3出租 亚星管理平台 欧博游戏官网 亚星管理平台 Love的黑色头像 英伦非主流图片头像女生头像 萝莉头像 Love的黑色头像 头像女生可爱字 qq闪动头像 男生 头像女生可爱字 男人走在路上得头像 头像女生可爱字 一家龙凤胎头像 白色头发女生的动漫头像图片大全 情侣头像小狗图片搞怪 听歌 卡通头像 女生吸烟者qq头像大全 透明微信头像 白色头发女生的动漫头像图片大全 搜索头像 透明微信头像 萌萌的小女生照片头像卡通头像 邪笑头像 调皮头像 成熟点女生头像贴吧 萝莉头像 搜索头像 社会哥头像 可爱花季少女头像00后 女生吸烟者qq头像大全 带帽子和口罩的头像 海边情侣女头像 男生意境头像