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
欧美头像气质男生头像可爱动漫小头像女生唯美好看的qq女生头像潮流汪星人头像图片大全可爱qq头像卡漫情侣头像图片欧美头像气质男生头像日本鬼子头像动态好看的qq女生头像潮流头像女生六个人的穿红色衣服的女生头像动漫网络少女心头像动漫好看的qq女生头像潮流懂你字头像网络少女心头像动漫头像爱笑女孩图片穿红色衣服的女生头像动漫太空气球头像日出风景·头像日出风景·头像动漫情头像情侣一对两张全身白衬衫女生头像侧脸日出风景·头像头像女生六个人的弟兄头像6人qq头像卡漫情侣头像图片闺蜜头像双人动漫非主流唯美黑白头像女生背影弟兄头像6人动漫情头像情侣一对两张全身懂你字头像21世纪小伙,魏成,在一个雷电交加的夜晚,正在打王者农药,不幸被雷电击中穿越了,但不是整个人穿越到了什么时空,只是他的灵魂穿越了,穿越到了平行世界上的蓝星,平行世界的蓝星,足有百倍现实蓝星世界的大小,同样进入到了现代文明,且达到了3级宇宙文明,只不过是在异族外星文明小灰人的控制之下。平行世界上的蓝星,始皇帝嬴政依靠方士,长久存在的地下组织,与外星小灰人的帮助下,一举统一了整颗蓝星,从嬴政执政夺取天下,统一天下,在此期间有方士,有外星种族高科技文明,有传说中的仙人,还有比仙更高等级的神,这些离奇经历,为了一统蓝星,超脱时间长河,永生不死,成为高高在上的神,神比仙要高一个等级的生灵,就这样遭遇哄骗,把信仰和灵魂贡献给了异族。从此不入轮回,不升仙界,被永远困在了异界族类的困魂殿里。 小伙魏成,为了让华夏文明信仰复兴,不再被小灰人和西方魔神控制,毅然决然接下了,拯救整个蓝星人类文明信仰的重任。凌凡左思右想,打算给金剑起个名字,总不能一直叫金剑吧?这样太没面子了,就叫“行天剑”听起来就够霸气,凌凡很是满意。意外穿越大秦,成为八公子嬴子夜,觉醒神级阅读系统,只要读书就变强!只要读书就能获得无限奖励,只要读书便可入圣! 为此,嬴子夜终日闭关读书,兢兢业业,不招灾,不惹祸。 终有一日! 始皇重危,意欲东巡求长生。 墨家蠢蠢欲动。 六国余孽准备造反。 赵高意欲篡改遗诏。 …… 嬴子夜知道,这时候不能继续藏了!再藏大秦不复、自己也将被胡亥杀死! “扮猪吃虎十余年,今日本公子不藏了!” “今日,本公子以读书入圣!一剑斩天!” “传令,三千大雪龙骑军出动!” “传令,铁浮屠出动!” “……” 人的命运,得看机遇。 吴晓是一位大学毕业生,可是在这个大学生如白菜一样的年代,毫无背景的他想要找一份好的工作已是不容易,更别提出人头地,有一番成就了。 在一次偶然他遇到了神奇的超级智能系统,从此他的人生发生了翻天覆地的变化。。。游戏与考试有时可以实现完美结合,而道德也应该影响考试的结果,某个班级里的十五名男生也这么想。他们个个都在某些领域有着自己的专长,也有着自己致命的缺陷。他们有的出身显赫,父母都热爱读书;有的却不幸出身于一个思想境界低下的家庭,不慎被家庭影响,坠入无底深渊。突然,他们被卷入了一场场特殊的考试之中,他们需要用自己学过的知识去应对各种各样的险境。你认为他们能成功吗?谁的青春不曾醉心于音乐、梦想抱着吉他为心上人引吭高歌?有道是商场如战场,岂知眩目的舞台亦如是。热爱文艺的男主由学生时代青涩的小歌迷,经历高人的点拨、学琴的快乐、打工的艰辛、大学的才气、组队的磨砺、爱情的甜蜜与苦涩,逐步迈入乃至深入“圈”内,才发现光怪陆离的聚光灯下竟是鱼龙混杂,辉煌暗淡得意伤感伴随尔虞我诈恩恩怨怨。历经悲欢离合坎坷多舛音乐之路的男主披荆斩棘终迎来演艺巅峰。铿锵奏鸣二十载史诗般摇滚传奇,激情澎湃致敬青春华彩与光荣梦想的一曲励志赞歌。带着音符节奏般的文字表述,身临震撼现场般的阅读体验。乔榆进入元宇宙里世界,获得了隐藏职业亡灵法师。 奈何开局智力精神都为0,还抽到了一个十分奇怪的天赋。 乔榆一怒之下,属性点全部加力量! 谁规定亡灵法师就不能和人肉搏的? 看着一拳打死世界之蛇耶梦加得的乔榆,里世界的玩家都疯了。 “大哥,求求你别跟人肉搏了!你是一位亡灵法师啊!求求你召唤个亡灵吧!” “这哪是亡灵法师,这踏马是六边形战士啊!”金榜现世! 首次开启名剑榜,上榜之人就能获得丰厚奖励! 面对名剑榜,大秦祖龙无比自信! “寡人手中天问剑,必是名剑榜第一!” 金榜公布,名剑榜第一,神剑-夜! 望着排名,始皇祖龙直接麻木了! 而咸阳深宫内一位慵懒少年的脑海中不断有机械声音响起! “叮,三国青釭剑上榜,获得暴击奖励!” …… “叮,大秦神剑-夜上榜,获得超级暴击奖励!” 赢乐笑道:“祖龙爸爸不好意思,奖励都归我了!” 始皇祖龙:“儿啊,你是要卷死爸爸啊!” “大秦就交给你了!” 穿越到天龙世界的屌丝,凭着对原著小说的耳详能熟,是选择修炼成绝世高手还是辅助原著主角成就霸业?不,武功要练,最重要的是篡改剧情,别让乔峰自杀…废墟中,一个脸跟煤球似的少年刚从梦中醒来便和一位老者四目相对。 少年环视了一下四周,哀叹了一口气,少年心想:这次是垃圾场啊~我也真够衰的… 随后少年看向老者,试探道:“嗨?” 老者:“……嗨?” …… 老者两眼发光,对少年道:“孩子啊,我看你资质不错,不如跟我学点手艺?”
恶魔天 震惊!我的金手指神明都慕了! 剑指云水间 玄灵石 界主往事 古剑与手枪 至暗复苏 亲情暴力 醉向明月 魔灵世界:这个猎魔人好可怕! 我不是大郎 我的朋友是创世神 关于勇者想当我妹夫这件事 穿越异界之最强武尊 如果是我呢 我的道是最毒的 魔证三千道 创世仙皇 寒阙传 太古第一神王 最新女生头像周排行 霸气微信头像女生抽烟 太空气球头像 qq头像卡漫情侣头像图片 最新女生头像周排行 情侣头像两个人黑白 太空气球头像 情侣微恐怖动漫头像图片大全集 闺蜜头像双人动漫 2017年最火的男生头像 闺蜜头像动漫分开不带字图片带字 闺蜜头像动漫分开不带字图片带字 我要个性网女生动漫头像女生头像图片 霸气微信头像女生抽烟 欧美头像气质男生头像 qq头像卡漫情侣头像图片 两人兄弟头像带字头像两张背影 闺蜜头像双人动漫 女生多人结拜头像卡通 好看的qq女生头像潮流 霸气微信头像女生抽烟 头像爱笑女孩图片 可爱动漫小头像女生唯美 网络少女心头像动漫 穿红色衣服的女生头像动漫 我要个性网女生动漫头像女生头像图片 闺蜜头像双人动漫 可爱动漫小头像女生唯美 女生多人结拜头像卡通 闺蜜头像双人动漫 qq头像卡漫情侣头像图片 家庭教师 云雀头像 汪星人头像图片大全可爱 欧美头像气质男生头像 弟兄头像6人 qq头像卡漫情侣头像图片 汪星人头像图片大全可爱 太空气球头像 我要个性网女生动漫头像女生头像图片 头像爱笑女孩图片 非主流唯美黑白头像女生背影 2017年最火的男生头像 闺蜜5头像 两人兄弟头像带字头像两张背影 网络少女心头像动漫 霸气微信头像女生抽烟 闺蜜头像动漫分开不带字图片带字 非主流唯美黑白头像女生背影 我要个性网女生动漫头像女生头像图片 日本鬼子头像动态 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 辉光之界 位面之灵 天道终一梦 文明苏醒 我进入异界开始修行之旅 亚星官网 欧博游戏官网 欧博官网 亚星官网 AG真人 非主流唯美黑白头像女生背影 头像爱笑女孩图片 日本鬼子头像动态 汪星人头像图片大全可爱 日出风景·头像 头像邓紫棋 网络少女心头像动漫 弟兄头像6人 霸气微信头像女生抽烟 弟兄头像6人 女生多人结拜头像卡通 我要个性网女生动漫头像女生头像图片 2017年最火的男生头像 欧美头像气质男生头像 2017年最火的男生头像 白衬衫女生头像侧脸 头像邓紫棋 2017年最火的男生头像 弟兄头像6人 头像邓紫棋 两人兄弟头像带字头像两张背影 闺蜜头像双人动漫 两人兄弟头像带字头像两张背影 日本鬼子头像动态 头像女生六个人的 日出风景·头像 好看的qq女生头像潮流 家庭教师 云雀头像 可爱动漫小头像女生唯美 闺蜜头像动漫分开不带字图片带字