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
龙邮票邮票收藏南京文交所钱币邮票交易中心大龙邮票邮票收藏邮票行情奥运邮票邮票网邮票价格奥运邮票  灵气复苏居然靠写小说就能具现功法,当别人为一部罗汉拳而大打出手的时候,我已经获得了九阳神功。 当众人有一部功法的时候,不好意思,我已经获得了全部的七十二绝技。 明明靠写小说就能获得功法,为什么还要打生打死呢? 王腾对此不太理解! 只因发现了院长不为人知的秘密而被院长开除,重返武院后开始了和院长斗智斗勇的故事……先别感到无趣,这,只是我传奇一生的开始!玄灵界,这片拥有着十境九地的广袤大陆之上,每隔千年便会产生一次降灵异象,伴随异象应世之人被称为玄灵尊者,而每任玄灵尊者的使命,就是带领灵族众将,重新封印上古异族。这是我的第一个作品,感谢大家的观看!平凡的世界,只因星空深处散出若干神秘光团,散落人世间,不同的地方,不同的天选之人,又会摩擦出怎样的火花呢!!!【系统+记者+内幕曝光】   不知什么时候,媒体报道只在意噱头和热度,却无人关心真相。   陈牧穿越平行时空,成为一位独立记者。   特立独行的选择站在真相那一边。   网红奶茶店每天排长队。   陈牧报道:“某网红奶茶店为节约成本,长期使用过期牛奶,现已有多位受害者住院,奶茶店生意却每日爆满。”   某流量小生事业蒸蒸日上。   陈牧报道:“当红流量已为三孩爸,却和漂亮粉丝牵连不清。”   某首富花大价钱为小儿子庆祝十八岁生日。   陈牧报道:“惊!首富头顶青青草原,为人养儿十八年!”   网友:“这记者能处,有事他真报啊!”一个喜欢吃凉面的男孩却意外穿越到异世界,却凭借着凉面扬名整个世界,是命运的安排,还是执棋人的棋子……是意外吗?重生解开意外死亡之谜,一个叫欧阳宇墨的特种兵退役后惨遭陷害后重生初中大汉皇朝,文道为尊。 世人修文,可移山填海,上天入地。 文道鼎盛,百家争鸣。 汉高祖不喜儒道,儒家没落。 这一世,董仲母亲失踪,父亲离世,被爱人陷害抛弃。 身为穿越者,他活着不如一条狗! 科举之日,董仲一鸣惊人! 他活着,不为别的! 只为争一口气! 只为告诉世人,他不是废物! 状元郎,诗才,儒道中兴之人,帝师太傅,大汉儒尊…… 种种称号,皆是董仲!天地棋盘,众生作子,只为逃离这一世的囚笼。
民居邮票 邮票吧 第三轮生肖邮票 大龙邮票 中国邮票 南京文交所钱币邮票交易中心 邮票 邮票收藏 中国邮票 邮票收藏价格表 邮票行情 邮票收藏 中国邮票 生肖邮票 邮票行情 上海邮票网 邮票互动网 世界上第一枚邮票 猴年邮票 欧美群迅雷下载 南京文交所钱币邮票交易中心 纪念邮票 中国邮票价格表 中国邮票 中国邮票 猴年邮票 十二生肖邮票 世界上第一枚邮票 邮票图片 女幽灵 百度网盘下载 迅雷下载 香港回归纪念邮票 龙邮票 邮票行情 香港回归纪念邮票 邮票行情 女幽灵 百度网盘下载 迅雷下载 女幽灵 百度网盘下载 迅雷下载 鸡年邮票 邮票交易所 邮票收藏价格表 我正在被美少女觊觎和追杀孪世道修仙:我的系统有点坑穿越末世当皇子异瞳者1永恒纪主斯卡德科技末武劫道宗禁地签到百年,我横扫诸天我是个阴阳师水行:上我是流浪者都市之最强武帝修真者民间秘闻录卡牌者末世:吾乃上将潘风!无敌从获得创造宝石开始飞向宇宙米斯大陆家国二百年内蒙古自治区住宅小区开发建设标准请复制到浏览器打开 安全门厂家 广州搬家公司价格 仓库 货架 有家具导购业务员的家具卖场如何设计薪酬 广州市电话公司电话号码 玻璃仓库图片 田园小区 自动化立体仓库存储需要考虑那些影响因素 窗帘孔距 卷扬机价格 步道砖厂家 常州仓库货架 大众搬家电话是多少钱 燃气锅炉价格 马桶批发 多层实木板衣柜价格 鞍山旅店房价 永定搬家公司电话 博克曼衣柜 欧式窗帘头 郑州吉祥搬家公司电话 衣柜软包 电焊条价格 沙发客网站 燃气热水器价格 挂墙式马桶 智能浴室柜有哪些品牌好 ppr管件厂家 水泥浴室柜 九牧和法恩莎的浴室柜 仓库零件箱 窗帘布算法 搬家公司联系电话 卫浴洁具厂家 浴室柜质检标准 茜草小区 奥地利水波帘头图片 南安卫浴品牌 仓库货架款式 湖北省武穴市房价 A型拣货架 宏泰浴室柜 海淀二手房 乐意居小区 墓碑价格表 临沂角钢货架批发电话 搬家公司行业百强 装修时鞋柜衣柜什么时候安装好 北京市小型搬家公司 宜家窗帘轨道 咸宁二手房 漯河新天地附近房价是多少 科技木厂家 花岗岩价格 8方搬家电话号码 青岛蚂蚁搬家公司招聘 窗帘有几层 搬家公司 北京 个性衣柜 ak卫浴 玄武岩厂家 日照岚山安东卫房价 郑州搬家公司哪个最好 链家在线北京二手房 彩钢瓦价格 石狮 房价 衣柜套 苏绣价格 仓库怎么分 仓库货架摆放技巧 沈阳二手家具 越野车货架 库奥 沙发 曲周货架厂 定制衣柜 性价比 赵县二手房 海尔热水器价格 定制衣柜 到顶 好不好 现代仓库有哪些设备 卫浴柜厂家 仓库笼规格 隔音门厂家 东莞窗帘 绵阳衣柜厂 窗帘流行色 合肥蜀山搬家公司电话 家具有限公司 窗帘帘头水波裁剪 凌云厂房价 北京东高地房价多少 全自动洗衣机价格 楼梯的价格 北京仓库货架厂 小型挖掘机价格 恒洁马桶小 淮安荷花池小区二手房 马桶盖尺寸 佛山门业厂家 遮光窗帘 仓库货架物品摆放图片大全 生产马桶座