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
邪君宠漫画的作者是谁火影忍者邪恶妖气漫画下载妖怪小红娘漫画免费阅读巨乳mm动漫漫画图片下载偷窥孔漫画中文漫画窈窕淑女春性漫画妖怪小红娘漫画免费阅读绿色健康漫画浪漫的香味漫画西形真依漫画邪君宠漫画的作者是谁邪恶叶罗丽精灵梦漫画全集在线观看巨乳色诱漫画妖怪小红娘漫画免费阅读浪漫的香味漫画看偷星九月天漫画全集巨乳漫画之乳汁巨乳漫画之乳汁畸想物语漫画花之家火影忍者漫画结婚了巨乳漫画之乳汁绿色健康漫画香港金梅瓶漫画大全偷窥孔漫画中文一家人在一起幸福漫画巨乳mm动漫漫画图片下载现代少女漫画大全机械椅子调教漫画邪恶叶罗丽精灵梦漫画全集在线观看又名《陈旦生的异世大陆冒险之旅》。 陈旦生穿越到蓝星中洲人族小王国,成了半兽人。长着公鸡头,公鸡爪,和电视剧《西游记》里的昴日星官有神似之处。 神秘人说,他曾是天上神仙,因犯天规,被贬凡间。要想重回天庭,必须拯救蓝星于危难之中。 拯救蓝星哪能那么容易? 蓝星分五洲,人族居住在中洲。生活在东西南北四洲的半兽人、狼人、鸟人以及来自海外的罗刹人,一直觊觎中洲的富饶与美丽,无时无刻不在想着斩杀人族,占领中洲。 小说开篇,陈旦生因劫法场,签下生死状,被迫寻找大夏国“失踪公主”。他发现,公主神秘失踪,不是简单的人族“和亲”故事,他背后隐藏着不为人知的更大阴谋。大汉之上,铁骑所到之处,皆为汉土。 刘承穿越到了大汉王朝,可是这个汉朝并非是历史记载中人们所熟悉的那个大汉王朝。 在这个世界的汉朝,有一个特殊的群体,在历史记载中不曾存在的修武者。 传言中,修武者的巅峰,可达长生。 彪悍的匈奴,以长生天为名,控制天下修武者,企图覆灭大汉王朝的大秦遗族。 都将在这个全新却又被人熟知的时代一一登场。 刘承,将会是那个各方博弈的棋子。 在以天地为棋盘的棋局之中,当所有的人都是棋手的时候。 那唯一的棋子,将凌驾于所有的棋手之上。 一个不被历史所记载的人,一个在历史车轮转动中,被刻意抹去的人。癌症晚期患者基因突变,开启无限穿越模式,实现精彩人生这是一个禁忌的世界,这是一个被诅咒的世界。 谁晓岁月蹉跎过,那年他乡梦回头。 一把传承的剑,改变的不只是少年的命运, 还有大陆的未来。 一剑生死两茫茫,纵横九载又八荒! 传奇之所以是传奇,因为它永垂不朽。 我将用这把剑,去开创一个属于芸芸众生的无限伟岸! 吾名,李星陨!这一剑,可陨星! 既然这个世界公平正义无法得到伸张, 那我将拿起正义的长剑,代表法官, 挥向这世间的邪恶。 扎纸匠,不是玩纸,而是玩人……人类,妖兽,恶魔,,三种种族出现地球上。但不断的战乱使天使与恶魔几乎灭绝。 而男主王昊天作为魔族后裔背负起振兴魔族的使命。 云道十七年,经灭国之灾,嘉祈国群龙无首,妖祸丛生,江湖动荡,人人自危,偌大的国土分裂成了无法相互联系的遗留文明。 经此一役, 残余的四位侯爷各据一方,易名为督府,改年号“平正”,各自将这一段过往掩埋于心。以稳定局势,护一方太平。 多年后,五地势力新人换旧人,初心被岁月消磨,其亦心怀鬼胎,野心昭昭。 被遗忘的梦魇逐渐显露,风平浪静的表象下究竟藏着什么呢...... “若这是你的命,我也当同你一赴万死。” “辛泽川,我可等了你好久” 架空文十年武当之旅,到底是为什么? 父母又去了哪里? 那深邃的黑暗,通向哪里? 立在天地之间的那块石碑,是守护,还是入侵?阴沉的乌云笼罩着大地,几颗流星散发着光辉想划开这云,一代枭雄张天升的故事,夹杂着常态的凄惨,绝望的哀嚎。21世纪,麻雀终于在中国成为现象级运动。2015年,世界冠军邴燮于事故中丧生,并被世界遗忘。为了找出母亲事故的真相并冲击麻雀的顶点,一度放弃麻雀的亓兑和加入了灼华中学麻雀部,向2020年的全国大赛进发。
元素宠师 混沌魂则 画缘续情 机甲里面有个仙 葬剑祈 茹毛饮血 天元之门 阿达卡之令 一品权相 引人入局 无名的尘埃 越穿次元副本 这个城市的回忆 大巫教主 上有九天 天纵之下 师尊就是充电宝 白云历险记 大结局了才发现我是穿越的 暗夜赞歌 寄生菌漫画小何 82fan漫画 看偷星九月天漫画全集 巨乳漫画之乳汁 寄生菌漫画小何 下级女漫画 可以掰弯女生的漫画 学园催眠系漫画 迅雷下载 迅雷下载 迅雷下载 迅雷下载 一家人在一起幸福漫画 邪恶叶罗丽精灵梦漫画全集在线观看 绿色健康漫画 小姐男生漫画大全 香港金梅瓶漫画大全 浪漫的香味漫画 漫画窈窕淑女 偷窥孔漫画中文 可以掰弯女生的漫画 一家人在一起幸福漫画 火影忍者漫画结婚了 邪君宠漫画的作者是谁 82fan漫画 妖怪小红娘漫画免费阅读 火影忍者邪恶妖气漫画下载 巨乳色诱漫画 浪漫的香味漫画 香港金梅瓶漫画大全 一家人在一起幸福漫画 火影忍者邪恶妖气漫画下载 火影忍者漫画结婚了 一家人在一起幸福漫画 偷窥孔漫画中文 82fan漫画 巨乳mm动漫漫画图片下载 邪君宠漫画的作者是谁 现代少女漫画大全 偷窥孔漫画中文 禁止抽烟漫画. 可以掰弯女生的漫画 香港金梅瓶漫画大全 禁止抽烟漫画. 偷窥孔漫画中文 寻宝记系列漫画全集 畸想物语漫画花之家 小姐男生漫画大全 巨乳色诱漫画 82fan漫画 绿色健康漫画 巨乳mm动漫漫画图片下载 机械椅子调教漫画 春性漫画 亚星官网 亚星官网 亚星游戏官网 亚星官网 亚星官网 不能重来服务公司 我的神级钛合眼 落叶随风至天台 猎手杰克:枪支恶魔 我的无限穿梭戒指 欧博官网 亚星官网 万利游戏官网 欧博官网 澳门葡京游戏官网 漫画窈窕淑女 禁止抽烟漫画. 妖怪小红娘漫画免费阅读 一家人在一起幸福漫画 寻宝记系列漫画全集 一家人在一起幸福漫画 禁止抽烟漫画. 现代少女漫画大全 一家人在一起幸福漫画 西形真依漫画 现代少女漫画大全 畸想物语漫画花之家 巨乳漫画之乳汁 畸想物语漫画花之家 绿色健康漫画 邪君宠漫画的作者是谁 绿色健康漫画 邪恶叶罗丽精灵梦漫画全集在线观看 马达加斯加漫画文字 巨乳mm动漫漫画图片下载 寄生菌漫画小何 偷窥孔漫画中文 邪恶叶罗丽精灵梦漫画全集在线观看 巨乳色诱漫画 偷窥孔漫画中文 小姐男生漫画大全 巨乳漫画之乳汁 82fan漫画 可以掰弯女生的漫画 浪漫的香味漫画