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
sm药物漫画ntr夏日 漫画s成婚漫画全集s女士m先生漫画tony的漫画合集sm少女高清无码漫画大全xiee母亲还债漫画s成婚漫画全集XX护士邪恶漫画u罗汉漫画magnetto星九月天漫画异世界sm药物漫画wowbl漫画to星九月天漫画免费s成婚漫画全集u罗汉漫画magnetxoxo漫画动态图片tony的漫画合集下载tony的漫画合集下载sm少女高清无码漫画x龙时代漫画在线看tony的漫画合集下载XX护士邪恶漫画sm男男漫画全彩漫画下载tony的漫画合集only漫画s女士m先生漫画sm男男漫画全彩漫画贴吧sm女性奴漫画wowbl漫画高田真一“小兰女士,你也不想新一君遭遇不测吧?” 小兰“这... 高田真一“小哀酱,你也不希望柯南君有生命危险吧?” 小哀“这...邪灵世界,妖魔丛生,鬼魅乱世。 凡人命如鸡犬,任人屠杀。 周晗觉醒了无限制修改武道修炼时长的系统,五毒手,金钟罩,旋风腿,统统修炼到一万年后。 武林盟主:我从没见过旋风腿真的可以踢出龙卷风…… 最强邪灵出世,一爪下去,连周晗的皮都蹭不破,震惊怒骂:你是邪灵我是邪灵? 周晗:以凡人之躯,比肩邪灵!2003年至今的真实娱乐圈大事“爽文演义”。 用半纪实的春秋笔法描绘作者一线文娱工作时的真实人生投影。 主角尚云从文娱江湖小虾米到顶级策划人的爽利不凡人生,秘辛频爆,异彩纷呈。 镁光灯下的娱乐圈, 上位者铭撰本纪,称王称霸; 高位者书写世家,纵横捭阖; 我们白手起家,努力靠双手奋斗出—— 属于自己的人间列传! ——娱乐圈之云上耕耘 纪实的手法记录生活,丰富的剧情白描梦想。 把人生写成一篇散文诗,近二十年的真实文娱经历,化作轻描淡写的一笔激情。 《娱乐圈之云上耕耘》上菜!“鄂州动而天下乱,鄂州安而天下定!”在中华上下五千年的历史车轮中,鄂州一直扮演着举足轻重的角色。 从上古时期黄帝与蚩尤之战中的九黎部落的站位,导致蚩尤战败身首异处;到禹分九洲的三苗族与夏王朝数百年的对峙,最终两个部落在相爱相杀中远走中原;再到商王朝勋贵之首的鄂候,为救九侯而犯颜强谏,结果遭到商纣王脯刑,商王朝也因此尽失天下;再到与西周硬刚三百余年的鄂侯驭方,其“振臂一呼,应者云集”,与淮夷东夷联军,一直打到东都成周(今洛阳市东白马寺一带)附近,然后两方互相消耗中磕死了对方,直到现在鄂地人们还有“不服周”一说。宣统元年,国祚倾斜,军阀、土匪、财主、恶霸 同室操戈、在这些动荡混乱年代,导致百姓严重怀疑国家制度。 这不信任的背后,是一场场无情的山洪冲击百姓心中对安定生活的渴望,是一汪汪污水吞噬百姓生命脊髓的悲哀,最终对生存国度彻底失望。 为天地间求一席生存之地,一群贩夫走卒奋起反抗,终于寻得一个崭新的生活。 穿越灵界修仙十几年,林天登基成为天衍圣主之日。 【灵界将与蓝星进行位面融合,成为新的世界!】 两界融合后,灵界与地球文明迅速碰撞,蓝星各国震惊。 “灵界人是变种人?空手接火炮,肉身揍坦克?” “米国企业号被击沉,灵界处于原始时代?” “一人横扫米国,她是天衍圣主的弟子!” 隔岸观火,林天暗地里保护着华夏,同时底蕴飙升。 “覆灭米国,修为提升至登峰造极境!” “华夏成功进入灵气复苏时代,奖励百劫神丹一枚!” “覆灭轮回圣地,修为突破至界王境,额外奖励三位圣女鼎炉。”热血的战争,痛苦的坎坷。 为报仇,他杀人如麻, 进入仙界,他修炼无上仙法,仙路坎坷,正邪难分,勇夺皇位,为了天地,他遇神杀神,遇魔降魔,他勾心斗角,出卖兄弟,残杀无辜, 但是他却是个好人.......人身有真身和假身,而常人只能感觉到假身,虽然真身就在里头,却不知道如何去应用。一个风水世家子弟,拥有幼儿时期自然开发的神通,经过命运的安排和高人的指点,开启了大宗师的传奇人生。外星资本家的故事这是神的世界!这是魔法的世界!这是我的世界! 这是一个小角色,通过一步步努力,最终踏上成神路,创下永恒传说的故事!
万古独尊神帝 作为普通人,分身强亿点很合理吧? 歌行诸天 机甲里面有个仙 炒股祥子 反派:十万年人生,让女主跪求原谅 天元之门 大猎杀时代 葛二两梦游记 谁是天眼 妖孽王二狗 越穿次元副本 诡异密匙 九界双帝录 萧暮 阳神:我天下无敌! 这个万界快递小哥可太刑了 武都伏妖录 我名:恒生 修仙就是开挂 OL日本漫画 t醉的母亲漫画 xoxo漫画动态图片 tony的漫画合集下载 OL日本漫画 ova妻爱漫画 xoxo漫画动态图片搜索 we all 漫画 only漫画 wowbl漫画 XX护士邪恶漫画 xo漫画动态图片大全 sm男男漫画全彩漫画下载 u罗汉漫画magnet sm少女高清无码漫画大全 tony的漫画合集 xoxo漫画动态图片搜索 only漫画 x龙时代漫画在线看 sm药物漫画 t醉的母亲漫画 s成婚漫画全集 ntr夏日 漫画 to星九月天漫画免费 u罗汉漫画magnet sm男男漫画全彩漫画下载 only漫画 ntr夏日 漫画 x龙时代漫画在线看 only漫画 tony的漫画合集 t醉的母亲漫画 s女士m先生漫画 sm药物漫画 sm男男漫画全彩漫画贴吧 tony的漫画合集 s成婚漫画全集下载 xoxo漫画动态图片搜索 sm男男漫画全彩漫画下载 s成婚漫画全集下载 tony的漫画合集 worst极恶王3漫画之家 sm少女高清无码漫画 xo漫画动态图片大全 to星九月天漫画免费 t醉的母亲漫画 XX护士邪恶漫画 s女士m先生漫画 sm女性奴漫画 xiee母亲还债漫画 亚星游戏官网 亚星官网 亚星官网 亚星游戏官网 亚星官网 无界永生 不灭神枪 神中狂龙 穿越时空思念 我在人间做销售的日子 欧博官网 亚星管理平台 澳门葡京游戏官网 欧博官网 亚星游戏官网 worst极恶王3漫画之家 x27同人漫画 wowbl漫画 tony的漫画合集 only漫画 tony的漫画合集下载 x27同人漫画 to星九月天漫画异世界 tony的漫画合集下载 XX护士邪恶漫画 to星九月天漫画免费 u罗汉漫画magnet xo漫画动态图片大全 we all 漫画 sm少女高清无码漫画大全 wowbl漫画 sm少女高清无码漫画大全 ova妻爱漫画 sm药物漫画 xoxo漫画动态图片 s女士m先生漫画 xoxo漫画动态图片 only漫画 xo漫画动态图片大全 xoxo漫画动态图片 sm少女高清无码漫画大全 xo漫画动态图片大全 x龙时代漫画在线看 sm女性奴漫画 x龙时代漫画在线看