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
动物油脂加工设备价格yvon mau价格出口易价格香港a2奶粉价格载脂蛋白 价格动物油脂加工设备价格滴灌带毛三通模具价格出口易价格美国莱邦价格原装进口摩托车本田大龟王价格北京西站肯德基价格表动物油脂加工设备价格沭阳水稻价格北京西站肯德基价格表出口易价格原装进口摩托车本田大龟王价格驴仔的价格2016进口纯佛鳄龟价格2016进口纯佛鳄龟价格江阴冷冻猪蹄价格boseqc2价格2016进口纯佛鳄龟价格美国莱邦价格重庆租架管价格载脂蛋白 价格merino 户外袜子价格香港a2奶粉价格男式双肩背包图片价格FLEYE眼镜官网价格沭阳水稻价格千年之约已过,南北大陆碰撞,为报血海深仇,一代帝王领军作战。霸刀现,大王出,山鬼从此成大巫!相传盘古以盘古斧劈开混沌,以太极图定地火风水,分清浊乾坤,开辟洪荒世界,演变六道轮回,生生不息。盘古无力支撑开天地力量而薨,元神分化三清(道德天尊、元始天尊、灵宝天尊)开天辟地,那身体精血大部分便化为十二祖巫,还有一小部分流转于六道轮回之中。林洛本是灵曜国虎将林烈之子,而林家被林烈兄弟赵柯设计陷害,被昏君一纸诏令株连九族。林落逃过一劫,但也被流放到有着‘禁断之地’之称的阎罗小世界中。哪曾想这里是上古神族战场,在这里林落受辱被弃入神魔井中,却获得神族功法《大炎罗》残本,掌握了阎罗小世界进入天璃大陆的关键通道,从此化名洛幽在两个世界里不断成长。 三年之后,林落携着阎罗小世界万千生灵归来,杀小人,灭昏君,诛妖邪,战七国,改天命,逆长生,一统两界......穿越平行世界,文娱资源匮乏,百废待兴。 孤独一世的江帆,身后多了一个喊自己“爸爸”的小棉袄。 为了让自己可爱的宝贝女儿过上公主般的生活,江帆开始拼命赚奶粉钱。 视帝、影帝、百亿导演、天王歌手…… 荣誉加身的江帆在巅峰时不顾数十亿粉丝的挽留隐退,只为了陪伴橙橙,给他最完整的童年。 这才发现,自己不知不觉间,成为了这个世界文娱行业的神,让文娱抵达了前所未有的盛势!天道有缺,世间最强体质神魔霸体被天道所摒弃,十五年忍辱,终将迎来曙光! 大道枷锁自束己身桎梏又如何?我自当逆战苍穹,笑傲九重天,神挡杀神,佛挡弑佛,逍遥天地间! 一日破关,我为尊,一拳荡寰宇,一脚山河溃,一静万物生,一动诸天陨,一念可化阴阳轮回,一念可镇压永恒万古! 我为太古第一神王,天骄至尊皆是我帝路上尸山血海! 我当以一双铁拳,粉碎诸天万界,天道也不行!以网游题材为背景,充分演绎游戏体验中的快感跟全新的故事情节,带你体验不一样的游戏人生带着200级三转大法师的记忆,陆阳重生回到了十年前,命运跟他开了一个玩笑,曾经失去过的,被夺走的,他都要重新拿回来。游戏中的赚钱技巧、副本攻略、传奇任务、装备出处、图纸秘方、战斗技巧他全都知道,且看一个重生玩家如何带着兄弟们横扫万国、焚尽天下,开启一段火神的传奇!大夏皇朝,文武并存。 妖魔鬼怪,无奇不有。 孙七天穿越而来,以逆天悟性文武双修,问鼎巅峰。 朝廷江湖中,皆是他的传说。 他是大夏棋圣,举手投足间,胜天半子! 也是大夏诗仙,绝世诗篇,信手拈来! 还是文道魁首,以创新之法,使文道昌盛! 诸多头衔之中,孙七天最为看重的,是大夏执剑人!   “吾孙七天,大夏执剑之人,以手中之剑,斩尽天下不公,开万世太平!”王越穿越到了洪星大陆,背后天生有着一副神秘龙图,龙图告诉他,“只要杀,不停的杀,他将是世间的最强者!” 以杀证道?不,他要苟, 不小心娶了个白给的媳妇,被卷入家族风波中的王越。 他该何去何从……
年少帝王梦 九幽练魂决 星之复苏 人在三国,开局收吕布当义子 九曲归一刀 次元人 最后的王座之轮回 御兽:我有一卷山海图录 高武:开局卖锅碗瓢盆 父子硬核闯万界 大周败家子 恶魔天 逍遥鬼主 众与世界 三国:气运图录,开局娶亲大小乔 踏破青冥 一剑证长生 双面魔圣 异界枭雄崛起篇 震惊!我的金手指神明都慕了! 艾林卡祛痘套装价格 ucc蓝迪斯2.0价格 驴仔的价格 2016进口纯佛鳄龟价格 艾林卡祛痘套装价格 美丽奴羊毛产品价格 广西黄花风铃木价格 4s 换 变速箱油 价格 merino 户外袜子价格 沭阳水稻价格 美国莱邦价格 美国莱邦价格 重庆租架管价格 原装进口摩托车本田大龟王价格 托斯卡纳羊毛价格 载脂蛋白 价格 广西黄花风铃木价格 merino 户外袜子价格 boseqc2价格 动物油脂加工设备价格 ucc蓝迪斯2.0价格 出口易价格 yvon mau价格 耐火轻砂价格 4s 换 变速箱油 价格 重庆租架管价格 merino 户外袜子价格 yvon mau价格 boseqc2价格 merino 户外袜子价格 2016进口纯佛鳄龟价格 ucc蓝迪斯2.0价格 香港a2奶粉价格 动物油脂加工设备价格 重庆租架管价格 载脂蛋白 价格 花茵美抑茵凝胶价格 广西黄花风铃木价格 重庆租架管价格 花茵美抑茵凝胶价格 载脂蛋白 价格 椒江码头批发海鲜价格 江阴冷冻猪蹄价格 德美亚1号16年价格 耐火轻砂价格 ucc蓝迪斯2.0价格 美国莱邦价格 香港a2奶粉价格 FLEYE眼镜官网价格 滴灌带毛三通模具价格 亚星游戏官网 亚星官网 亚星官网 亚星游戏官网 亚星官网 史上最强直播间管理员 海德尔的血族 魔龙士拯救世界之路 乱世鬼才 青锋三尺空泛寒 亚星管理平台 万利游戏官网 万利官网 亚星管理平台 澳门葡京官网 出口易价格 香港a2奶粉价格 花茵美抑茵凝胶价格 美丽奴羊毛产品价格 油麻石价格 德美亚1号16年价格 男式双肩背包图片价格 椒江码头批发海鲜价格 原装进口摩托车本田大龟王价格 艾林卡祛痘套装价格 4s 换 变速箱油 价格 油麻石价格 yvon mau价格 耐火轻砂价格 香港a2奶粉价格 广西黄花风铃木价格 男式双肩背包图片价格 江阴冷冻猪蹄价格 重庆租架管价格 申报价格 英文 北京西站肯德基价格表 椒江码头批发海鲜价格 FLEYE眼镜官网价格 yvon mau价格 申报价格 英文 香港a2奶粉价格 yvon mau价格 美丽奴羊毛产品价格 出口易价格 美丽奴羊毛产品价格