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
别人苹果手机定位软件叫什么建伍 8108 写频软件有免费算工资软件吗叫餐器软件哪个好自行车受力计算软件别人苹果手机定位软件叫什么w7软件图标批量更改有免费算工资软件吗工资核算软件有哪些问题聊天动图表情软件笔状电脑抓图软件哪个好别人苹果手机定位软件叫什么施工钢管内架提量软件笔状电脑抓图软件哪个好有免费算工资软件吗聊天动图表情软件电子相册 触屏软件自行车受力计算软件自行车受力计算软件路由器防止苹果手机软件vba软件 office路由器怎样开通苹果手机软件工资核算软件有哪些问题isee照片处理软件工程档案整理软件免费mp4视频文件损坏有哪些软件叫餐器软件哪个好快递面单打印软件批量导入路由器防止苹果手机软件广西移动历史软件下载一个末日的到来,人类一败涂地,幸存者们需要在艰难的环境里生存下来,且看林宇如果在这艰苦环境下装逼打虎。朝歌夜弦,莫过一本好看的书,莫过一首美曲罢了欢迎来到第一年级! 这个学院会有许多不一样地方。例如拥有一只可以帮助战斗的精灵、”期末考试“是战斗排位赛等等。 这个学院也会有许多相同的地方。都有老师,打破了学校的东西都要赔偿,考试都会不及格等等。 那么现在,请收拾好心情。迎接新学期的开始吧!29岁的天岚,事业无成,刚刚朋友也和自己分手,独自一人走在熟悉的街道上,往事历历在目,也许终究是自己错了,但你们却也不该这样对我······ 如果能够回到过去,我想我一定······玄龙大陆,以武为尊。 少年叶平安得到败天武帝的至尊天眼,从一个卑微的蝼蚁,成为至高无上的绝世武帝! 一路上白骨累累,红颜多娇路飘摇,无敌路上太寂寥!一个渴望光明的少年,身体里却埋葬着一个地狱,镇压了数十万年的地狱却因为少年心间的一丝光明开始蠢蠢欲动,“光明不该被你们染指,都说死后地狱是我们这些人的尽头,可我不信,我觉得光明才是我们最终的尽头,我们一起去做个见证如何?”言罢,少年也不顾体内的疯狂,万道光明自九幽绽放!镇物,也叫镇邪之物。在民间,镇物用于镇墓、镇宅等。 镇物用得好可以救人,而被心术不正的人利用,也能杀人于无形。夏炙一觉醒来发现自己穿越到了平行世界。 这里的人竟然将游戏定位第九艺术,玩家为了玩到一款好玩的游戏出多少钱买都愿意,游戏设计师成为最热门的行业。 夏炙狂喜,因为上个世界的无数经典游戏,这里的人竟然都没玩过。 于是一名超级天才游戏设计师诞生了。 美女导师:“我不配做陈欢的导师,他的‘马里奥’足够让我学一辈子。” 游戏测评员:“‘塞尔达’是足以改变世界的游戏,陈欢领先了业界一千年。” 攻略大佬:“扶我起来,我要和苇名一心拼刀,别拦我我还能送!” 全球玩家:“夏炙快点出新游戏,多少钱我们都买。” 其他游戏设计师:“年度游戏还选什么,直接给夏炙算了。” 夏炙本人:“别急别急,在做了(新建文件夹)。”意外被卡车撞死的周奕,阴差阳错成为了阴阳商人! 阳间孟婆汤饥饿营销,阴间替鬼追凶服务,氪金轮回包你满意! 只有你想不到,没有周奕他办不到! 只要格局打开,人生处处是惊喜! 作为一名优秀的雁过拔毛阴阳商人,周奕表示,是龙也给我盘着!是虎也给我卧着! 毕竟我一个行走阴阳两道的商人,战力天花板也不是什么稀奇的事吧?写写人生经历,就当做小说,娱乐看看都可,希望我们都能走出自己的童年。
我带着系统回来了! 查理的家族史 正德 我哥们 全球末世:我能无限升级 致五月的冬天 江湖锦衣卫 唯心之传 废材四小姐:天之妖孽 一剑长空 空间兑戒 苍隙界 御剑芒 镜花水月大世界 小白幻想曲 穿越两界的大明星 乱世剧情 万界:通灵 轮回系统之异界战神 天灵星海 重生之我欲擎天 mp4视频文件损坏有哪些软件 聊天动图表情软件 电子相册 触屏软件 自行车受力计算软件 建伍 8108 写频软件 快递面单打印软件批量导入 单机游戏那个软件好用 如何下载苹果手机录像软件下载 二维码读取软件j 施工钢管内架提量软件 如何下载鲁班软件 如何下载鲁班软件 isee照片处理软件 聊天动图表情软件 别人苹果手机定位软件叫什么 工程档案整理软件免费 不需要网就能记笔记的软件 mp4视频文件损坏有哪些软件 下载ai读图软件 有免费算工资软件吗 下苹果游戏好的软件 有免费算工资软件吗 下载ai读图软件 路由器怎样开通苹果手机软件 360优酷如何跳过广告软件 苹果手机用什么五笔软件下载 mp4视频文件损坏有哪些软件 下载ai读图软件 vba软件 office mp4视频文件损坏有哪些软件 自行车受力计算软件 下苹果游戏好的软件 叫餐器软件哪个好 别人苹果手机定位软件叫什么 isee照片处理软件 工程档案整理软件免费 叫餐器软件哪个好 单机游戏那个软件好用 isee照片处理软件 擦除上网痕迹软件哪家强 工程档案整理软件免费 如何下载苹果手机录像软件下载 路由器防止苹果手机软件 不需要网就能记笔记的软件 笔状电脑抓图软件哪个好 下苹果游戏好的软件 如何下载鲁班软件 工程档案整理软件免费 苹果手机用什么五笔软件下载 w7软件图标批量更改 亚星游戏官网 亚星官网 亚星官网 亚星游戏官网 亚星官网 我想借鉴一下主角 太阳系的秘密档案 一拳侠 我的九队我的酒 我是天上仙 万利游戏官网 欧博游戏官网 皇冠登3出租 万利游戏官网 快连下载 擦除上网痕迹软件哪家强 叫餐器软件哪个好 路由器防止苹果手机软件 office迷你软件 isee照片处理软件 路由器怎样开通苹果手机软件 如何下载苹果手机录像软件下载 建伍 8108 写频软件 路由器防止苹果手机软件 不需要网就能记笔记的软件 二维码读取软件j w7软件图标批量更改 office迷你软件 下载ai读图软件 笔状电脑抓图软件哪个好 路由器怎样开通苹果手机软件 mp4视频文件损坏有哪些软件 二维码读取软件j 工资核算软件有哪些问题 office迷你软件 快递面单打印软件批量导入 自行车受力计算软件 擦除上网痕迹软件哪家强 下载ai读图软件 苹果手机用什么五笔软件下载 下苹果游戏好的软件 mp4视频文件损坏有哪些软件 自行车受力计算软件 下载ai读图软件 vba软件 office