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最新版小清新可爱呆萌猫咪头像卡通图片头像本人女真实照片小孩头像女生个性网女头像学生自拍图片很酷的猫的头像图片卡通意境头像女香港女头像学生自拍图片可爱呆萌猫咪头像卡通图片小孩头像女生个性网结婚头像西装头像图片大于320头像图片大于320微信头像花园房子唯美文艺小清新女头像最美风景的头像图片大全情侣头像一对一左一右2017真人成熟自拍头像男生头像情侣头像两个人的好看的圆形头像带框女头像迷惑菇头像黑色闪图头像微信头像花园房子意境头像女香港未婚妻的莫名失踪,青蛇面具的黑衣人。 未知的公寓,离奇的凶杀案。 随着科学时代的发展,人们已经渐渐忘却了那些诡异传说。 凶残的弑父案背后到底蕴藏着什么隐情。 正值花季的少年为何惨被分尸。 为何憨厚的老人会举起锄头挥向自己的孩子。 这背后又被何人操控。 这一切都要从一个名叫“三号公寓”的地方说起。人在做,天在看,天知、地知,你知,我知!作恶者为非作歹,祸乱人间,躺赚不义之财,妄想游离于法网之外,欺天瞒地,逍遥自在,潇洒快活!殊不知,不是不报时候未到!天网恢恢,疏而不漏!恶者恒恶,善者永善,公道自在人心!赵铭伦认为, 住对门的林洛伊是他的一生之敌; 从小到大,林洛伊没少告他的状,拆他的台,揭他的短! 直到生日这天, 赵铭伦居然获得了,能任意改变林洛伊身体的能力! 本以为这下子能彻底拿捏她, 万万没想到,林洛伊竟然……明朝末年,张怀英在一场江湖纷争中失去了至亲,从此无依无靠,寄居伯父家,受尽同伴的冷嘲热讽。 直到某天,天边飞过一颗流星,将方圆五丈的树林夷为平地。 之后,张怀英从卧榻之侧立起,记忆零碎…… 从此在武当派崭露头角,随着等级的提升,张怀英开始问鼎中原。爱情的路上没有对错,有的只是遇见与错过。。。开局就被全世界通缉…好不容易有个系统,结果这个破还动不动死机, 李无生表示太难了,苍天啊,我要回地球!一洛之海,万丈之深,水是命源,洛海之根黑暗侵袭,神明败落,复兴仙域,一人一剑,万古长存!精灵族与巨人族自古以来就生活在艾夫海姆大陆,可日益严重的贸易冲突打破了双方的和谐,至此!精灵族与巨人族开始了一次又一次的战争,本身生活在生命之树下的精灵族靠着灵力可与巨人族相匹敌,可就在这时精灵族缺意外分裂,分裂成光精灵族和暗精灵族,暗精灵族似乎是与巨人族合作起来进攻光精灵族,至此,光精灵族的年轻精灵——池本,开启了他的逆天道路,只为拯救艾夫海姆!《摩觉》原名为《千古纪法》,一个励志除魔卫道的故事。故事基于现实与虚构的结合,有天马行空,也有实事求是,更有意想不到。故事也向许多的武侠小说经典之作致敬,力求精彩而又完整,一部武者之道的新作送给大家。
天青录之命中浮沉 全民穿越:开局暴揍荒天帝 一气化神 我真不会法术 只有我是正常人! 我爱我的刘大叔 武灵至尊传 热烈而隐晦的爱 众仙带我飞 糖汕烧烤之刷短视频修仙 万物主宰者 陛下!丞相又在殿外骂人了! 小总裁老司机 当问剑 半神?我欲成神! 万灵之域 上苍劫光 异栋生存手册 七色之心 烤冷面 2017韩版情侣头像动漫 头像看不见脸 结婚头像西装 头像图片大于320 2017韩版情侣头像动漫 主播头像女 能代表心情的头像 短发霸气女头像图片 圆形头像带框女头像 意境头像女香港 情侣头像一对一左一右2017 情侣头像一对一左一右2017 真人成熟自拍头像男生头像 小孩头像女生个性网 黑猫警长头像、 情侣头像两个人的好看的 能代表心情的头像 圆形头像带框女头像 唯美文艺小清新女头像 很酷的猫的头像图片卡通 头像看不见脸 可爱呆萌猫咪头像卡通图片 开心活泼的微信头像 最美风景的头像图片大全 短发霸气女头像图片 真人成熟自拍头像男生头像 圆形头像带框女头像 开心活泼的微信头像 唯美文艺小清新女头像 圆形头像带框女头像 头像图片大于320 头像看不见脸 迷惑菇头像 很酷的猫的头像图片卡通 真人成熟自拍头像男生头像 情侣头像两个人的好看的 恐怖系二次元女生头像 能代表心情的头像 真人成熟自拍头像男生头像 恐怖系二次元女生头像 情侣头像两个人的好看的 男生动漫带字暧昧图片头像 微信头像花园房子 有怡字头像 最美风景的头像图片大全 头像看不见脸 情侣头像一对一左一右2017 迷惑菇头像 恶魔天使韩国动漫图片头像 头像2017最新版小清新 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 少年前进 无名尊者 亡者恸夜 魔法修真者 年少复仇记 AG真人 欧博官网 亚星管理平台 AG真人 皇冠登3出租 小孩头像女生个性网 可爱呆萌猫咪头像卡通图片 有怡字头像 有怡字头像 迷惑菇头像 情侣头像两个人的好看的 黑猫警长头像、 小孩头像女生个性网 头像图片大于320 结婚头像西装 唯美文艺小清新女头像 可爱呆萌猫咪头像卡通图片 女头像学生自拍图片 头像本人女真实照片 迷惑菇头像 圆形头像带框女头像 可爱呆萌猫咪头像卡通图片 很酷的猫的头像图片卡通 能代表心情的头像 能代表心情的头像 迷惑菇头像 迷惑菇头像 黑猫警长头像、 很酷的猫的头像图片卡通 情侣头像两个人的好看的 女头像学生自拍图片 意境头像女香港 2017韩版情侣头像动漫 微信头像花园房子 情侣头像一对一左一右2017