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
香港回归纪念邮票邮票中国邮票上海邮票网邮票猴年邮票邮票收藏价格表民居邮票邮票收藏大龙邮票绝世神王,重生一世,修无上逆天功法,有神王传承记忆,偶尔指点一下那所谓的天下大师,随手收几个天才做弟子跟班。 “缺少功法?那很简单!” “没有丹药?容易至极!” “问题是,你跟我混了么?” 这一世,叶星辰注定要踏上那巅峰至强者,以强凌云,以武逆天。我爷爷给我定了一个娃娃亲,就在结婚当天我才发现,我的老婆原来不是人!世界初生世界法则不全拥有生老病三种生命形态,唯独缺少了生命的最终形态死亡,世人浑浑噩噩痛快不堪。世界上什么是最重要?家人?爱人?朋友?如果这些被人强行的夺走了性命,你能怎么办?如果你是浑浑噩噩的虚度一生的话,那么你如同行尸走肉一般的存在。没有了良知你还能做些什么?如果你是随他们而去的话,那么恭喜你,你将会下入十八层地狱,整天净受小鬼们的蹂躏。如果想知道正确的选择吗?《十年复仇》会告诉你!无赵玉虎,貌不惊人,瘦小枯干,巧舌如簧,能言善辩,这是一位彻头彻尾的小波皮,那真是老牛吃破草帽,满肚子坏圈圈,只有你想不到,没有他做不到,一天不搞点事情,浑身也不自在。 所谓面馍不坏不知酱味,粮不发酵难得美酒。世界上的事,好有好的道理坏有坏的理由,好戏还得坏人配,再好的作品,没有了坏角色的陪衬,也是没法表演的。 爽文就完了天地玄黄,宇宙鸿荒……一个老大的人干嘛还读这个?啥?我小叔叔是个盗墓的?一场突如其来的变故席卷全球,远古的“神”苏醒,人类陷入了死战。最终人类战胜了“神”。200多年后,“神”卷土重来,秘武-血君子 重现,有个注定的人,将拿起它,走向诛神之路。人类不感谢罗辑
纪念邮票 邮票互动网 奥运邮票 奥运邮票 文革邮票 女幽灵 百度网盘下载 迅雷下载 香港回归纪念邮票 上海邮票网 大龙邮票 邮票吧 中国邮票 上海邮票网 欧美群迅雷下载 龙邮票 中国邮票 邮票 邮票市场 邮票 猴年邮票 邮票交易所 世界上第一枚邮票 鸡年邮票 邮票收藏 欧美群迅雷下载 邮票收藏价格表 邮票吧 龙邮票 邮票互动网 邮票收藏 邮票价格 邮票网 邮票网 十二生肖邮票 十二生肖邮票 奥运邮票 中国邮票 第三轮生肖邮票 十二生肖邮票 纪念邮票 邮票交易所 预世录侠梦倾心万载第一神朽谛邪灵降临:我以肉身镇压诸天全球穿越:我能吞噬天赋大仲帝国末代风云录多少痴恨烟雨中玄幻:九生轮回飞天成神我叫张小强玄甲奇兵青春烟雨震惊,我的视频通未来!虫族入侵,我誓死守护人族仙人众千山万水总是情诸天从葫芦娃开始佐佑,夜灵纪元之神魔学院大连房价请复制到浏览器打开 混凝土搅拌机价格 两门衣柜门 南昌做窗帘 窗帘2.3做几个水波 卫浴水龙头 昆明搬家公司电话 铁西云峰街搬家公司 沙发价格 赣州宜居小区公租房图 连水波眉的做法视频 安装浴室柜后地面露一段不美观 床头 两侧 衣柜 风水 链家二手房 便宜的衣柜 重庆渝北区锦绣丽舍房价 蒙娜丽莎卫浴 不锈钢板价格 货架走灯线 如何卖窗帘 1+2+3沙发尺寸 松木家具图片 德尔达卫浴 沈阳二手房网 安住卫浴 抚远路538弄房价 大众搬家客服电话 昌平搬家公司电话六街 凯美乐不锈钢浴室柜官网 搬家公司电话 搬家 上海 电话 聚酯的价格 My home定制衣柜 木衣柜防虫 楼空水波 贵港二手房 酒店隔断厂家 黄州房价网 蒙icp 衣柜 代理窗帘 深圳长途搬家公司哪家好 水波帘裁剪方法与图片 铝合金门窗价格 香烟价格查询 合肥市搬家公司电话号码 工厂仓库拖料 木货架价格 卷扬机价格 广州顺德市沙发皮工作 聚碳酸酯价格 固定窗帘 窗帘帘头3米要几个水波 二手房过户注意事项 镀锌板今日价格 上海更衣柜厂家 隐藏式衣柜 步道砖厂家 大型马桶 进口瓦厂家 马桶成型生产厂家 童装厂的仓库 衣柜内裤架 兰州房价 北京回龙观利康搬家电话 台州立体仓库 马桶直冲水 西安诚信搬家公司电话多少 皮沙发 框架 马桶便宜 水波卷可以烫出来吗 什么的窗帘 雍水岸房价 新郑二手房 南昌江边小区拆迁 二手房交易费用 内蒙古自治区住宅小区开发建设标准 2017年乐清房价 柏西衣柜 原化肥厂上建小区 昆搬家公司电话号码 北京自动立体化仓库 窗帘电机 杂乱的仓库 箭牌卫浴价格 龙岗南联搬家公司电话 沙发B-017供应 搬家公司负责搬运吗 电子料货架 济南小区 森林之源 家具 公司电话 窗帘水波帘头制作 马桶原理图 空调 衣柜上方 镂空水波裁剪演示图 株洲房价 沙发城乡销售 百叶窗价格 松原市政府附近房价 长四米六宽两米七的卧室有一张床一个书柜一个衣柜怎么摆放好要图 ppr管价格 无锡仓库