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
狗狗眼睫毛倒长图片狗狗眼睛有虫怎么处理狗狗眼睛长寄生虫狗狗眼睛长息肉饮食狗狗眼睛红是吃鸡蛋狗狗眼睫毛倒长图片狗狗眼睛里面有东西是怎么回事狗狗眼睛长寄生虫狗狗眼睛上张包狗狗眼睛寄生虫线虫狗狗眼睛红爪子红狗狗眼睫毛倒长图片狗狗眼睛里面的寄生虫狗狗眼睛红爪子红狗狗眼睛长寄生虫狗狗眼睛寄生虫的图片狗狗眼睛里有白虫子狗狗眼睛红血丝流眼泪狗狗眼睛红是吃鸡蛋狗狗眼角长肉疙瘩图片狗狗眼睛息肉手术步骤狗狗眼睛红血丝流眼泪狗狗眼睛上张包狗狗牙龈上长白的东西狗狗眼睛打肿了怎么办狗狗需要打几针疫苗狗狗眼睛打肿了怎么办狗狗血线怎么看图解狗狗眼角长肉疙瘩图片狗狗眼睛里面的线虫星云宇宙环宇星海第一强者龙海,寻找百万年前,追杀上古邪魔的两位古神界护法祖师爷,而进入了其他宇宙位面空间之中,嫉恶如仇,不畏艰险,勇往直前是龙海的本心,在七大宇宙空间里,行侠仗义,救苦救难,发扬着大无畏精神……就在邪魔启动了轮回灭世的元器时,世间亿万生灵即将涂炭,所有人面对死亡也无能为力,这时龙海出现,利用两把终极元器才打破了轮回之刃,叫停了湮灭轮回的力量,谁曾想这祸害的源头竟然是创造了宇宙万物空间的造物主“神祖”的邪恶怨念所化,真是正邪不两立却出自一处!都是神祖的思想而已!正义和邪恶都是神祖体内的思维万象,演变出来的真实大能力!众人知道后都是无奈的摇头,只因为人类都是凡人,只有个别的修炼者得到了神祖真传,成了世间的大能为者,统治着整个宇宙空间和所有的环宇星海,龙海最终成了超越神祖境界的人族强者,达到了无极之境,废除了神祖的传承,站在了环宇之巅最高处! 本书就是《被逼成圣》的续集故事!乡村小子李二蛋意外获得仙尊传承!结果!清纯少女想要他,乡村美妇占有他,高冷女神强迫他...谁能告诉李二蛋怎么摆脱这些女施主?异界的国度妖魔苏醒,那里即将面临生死劫难,轩辕庄就是摆脱生死劫难的寄托。轩辕庄自己在非凡经历得以砥砺成长。 趁着夜色我想呐喊,却又寂静无声。 我到底该是一缕风,还是一株草? 我只是想我是一缕风,不被世俗所束缚。可我终究是活的太过于理想化了,我只能是一株草,一株不被定义的草,一株早已腐烂的草,没有根茎,无法扎根,且哪儿也飞不去的草。 我想我早该抛弃我那不切实际的理想主义,好好睡一觉,天总会亮的。 因为没有人会在天亮时伤感。民国初年,江沪青年司机玄狐,在驾驶车辆走夜路时,因碰撞阴魂煞气而丧命! 在九重天阴司府投胎审核寺,玄狐的鬼魂遇到此处监官铭难改等神仙,在进行投胎运程实验游戏,玄狐有幸被挑选参加这个游戏! 从此,玄狐开始扑朔迷离、危机四伏、艰苦卓绝、无穷无尽的换回磨难历程......她宇文曼——大夏国第一个女皇帝。 坐上龙椅的第一天起,她就成为了不折不扣的傀儡。 本来想着就这样混吃等死,结果突然的一场兵变,连傀儡都做不成了...... 当她再一次夺回皇位时,世人对她依然缺乏认同。 在这个群雄争霸的年代,最弱的女皇,居然在所有人眼皮底下捡了个大便宜。 如果治理这个天下能算作便宜的话... 断壁残垣、饿殍满地、民不聊生... 战争带来了至高皇权,也带来了遍地枯骨。 宇文曼正襟危坐,身边是刚刚被册封的“国姓爷”文泰,殿外站着忠心耿耿、整齐成排的士兵,台阶下是一群诚惶诚恐的大臣。 大臣们曾经跪拜过她,又肆意污蔑她...如今为了日子过得去,只好颤颤巍巍的再次向女皇磕头。 好在女皇的心思还不在他们身上。 因为她是皇帝,所以没有退路——进则生,退必死! 奇迹不会一次又一次发生! 她必须整顿纲纪。 必须让难民归乡、让荒废的良田重新长出庄稼。 必须挥舞利剑,赶走那些盘踞中原的豺狼虎豹......少年天才于洋来到黄海市当保镖,且看他如何走上人生巅峰臭狗的修炼之路,是继续摆烂还是修炼全看心情……一代天神江山,奉命下凡拯救蓝星。麟羽意外穿越到了三界混乱时期,还获得了系统,关于麟羽如何一统三界就只能看他自己的了,开局一个系统装备全靠买。
随记空想 暗夜卡徒 我的百变怪不可能这么可爱 女神的最终战争 复仇选择系统 神奇宝贝之布卡 大唐之最强熊孩子 重生之奋斗进行曲 重生:回到八零当首富 诸天之铁匠也疯狂 浔城英雄传 无尽仰望 瑰案:紫瞳神探 念力之域 末代剑仙异闻录 我在大荒炼体成仙 菊花残,造剑神 枕月狼王 元宇宙:出马传奇 娱乐:怒喷评委,全网求我写歌! 狗狗需要打几针疫苗 狗狗眼睛寄生虫的图片 狗狗眼睛里有虫 狗狗眼睛红是吃鸡蛋 狗狗眼睛有虫怎么处理 狗狗血线怎么看图解 狗狗眼睛里有虫 狗狗眼睛寄生虫怎么办 狗狗血线长怎么办 狗狗眼睛里面的寄生虫 狗狗眼睛里粘的狗毛 狗狗眼睛里粘的狗毛 狗狗牙龈上长白的东西 狗狗眼睛寄生虫的图片 狗狗眼睫毛倒长图片 狗狗眼睛打肿了怎么办 狗狗眼睛里有棕色条状 狗狗需要打几针疫苗 狗狗眼睛线虫怎么来的 狗狗眼睛长寄生虫 狗狗眼睛寄生虫的图片 狗狗眼睛长寄生虫 狗狗眼睛线虫怎么来的 狗狗眼睛红血丝流眼泪 狗狗眼睛寄生虫线虫 狗狗眼角长个红色疙瘩 狗狗需要打几针疫苗 狗狗眼睛线虫怎么来的 狗狗眼睛线虫怎么来的 狗狗血线长怎么办 狗狗眼睛红是吃鸡蛋 狗狗眼睛会有寄生虫吗 狗狗眼睛长息肉饮食 狗狗眼睫毛倒长图片 狗狗牙龈上长白的东西 狗狗眼睛打肿了怎么办 狗狗眼睛长息肉饮食 狗狗眼睛里有虫 狗狗牙龈上长白的东西 狗狗眼睛长息肉为什么 狗狗眼睛打肿了怎么办 狗狗眼睛寄生虫怎么办 狗狗眼角长肉疙瘩图片 狗狗眼睛里有棕色条状 狗狗眼睛红爪子红 狗狗眼睛会有寄生虫吗 狗狗眼睛里粘的狗毛 狗狗眼睛打肿了怎么办 狗狗眼角长个红色疙瘩 狗狗眼睛里有白虫子 亚星官网 亚星官网 亚星游戏官网 亚星官网 亚星官网 大唐小奸商 重生之实业帝国 天亘世修 玄幻:九生轮回 都市之我被迫成神 欧博游戏官网 皇冠登3出租 亚星管理平台 欧博游戏官网 亚星管理平台 狗狗眼角长肉疙瘩图片 狗狗需要打几针疫苗 狗狗眼睛长息肉饮食 狗狗眼角那里红红的 狗狗眼睛寄生虫的图片 狗狗眼睛红血丝流眼泪 狗狗血线怎么看图解 狗狗眼睛长寄生虫 狗狗眼睛里面的寄生虫 狗狗眼角长个红色疙瘩 狗狗眼睛寄生虫的图片 狗狗血线长怎么办 狗狗血线长怎么办 狗狗眼睛寄生虫线虫 狗狗眼睛长息肉为什么 狗狗牙龈上长白的东西 狗狗眼角长个红色疙瘩 狗狗眼睛有虫怎么处理 狗狗血线长怎么办 狗狗眼角长肉疙瘩图片 狗狗眼睫毛倒长图片 狗狗眼睛红是吃鸡蛋 狗狗眼睛里有虫 狗狗眼睛有虫怎么处理 狗狗眼睛里面的寄生虫 狗狗眼睛里粘的狗毛 狗狗眼睛会有寄生虫吗 狗狗血线长怎么办 狗狗眼睛里有白虫子 狗狗眼睛长寄生虫