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
奥运邮票女幽灵 百度网盘下载 迅雷下载邮票网生肖邮票纪念邮票邮票市场邮票行情文革邮票邮票市场中国邮票价格表如果每一位父母在有小孩之前学习怎么成为合格的家长,是否能在一定程度上避免这种悲剧。无数的故事,编织成了这个世界。为人师者,授徒的最高境界就是青出于蓝而胜于蓝。 可李棋不这么认为,因为坑爹的师徒系统,无论是神功秘籍还是法宝丹药……居然全都只有徒弟的份! 教出来的徒弟一个比一个厉害,自己却还是个弱鸡该怎么办? 危险重重的世界,一个没实力的废柴宅男又该怎么自保? 在线等,急! …… 于是李棋想通了,既然自己不能变强,那他就要教出一批可以保护自己的最强徒弟! 收徒法则第一条:天大地大师父最大! 李棋:“少年,你渴望力量吗?那就当我的徒弟吧!”穿越末日世界,人类苦苦挣扎求存,陈枫却意外觉醒末日游戏系统,开启了不一样的末世体验。 别人面对怪物,东躲西藏,恐惧不安,陈枫却开启了刷怪模式; 别人辛苦锻炼,提升能力,九死一生,陈枫只要动动手指,能力全满; 别人为了物资,出卖一切,收获甚微,陈枫只要打怪,就能爆出来。 陈枫把异世九头蛇踩在脚下,“我今天只想吃蛇羹,你可别不识抬举!”系统傍身,杀一人,活一天; “以死神的名义,你必须死!” “以死神的名义,毁灭他们!” 死神:“呃...你不要坏我名声!”渊辰是男生的名,临渊星辰。深邃,明亮。他是游走于世间的鬼魂,时而有质,时而无质。非人非仙,三界不留。不知何所从来,亦不知何所归去?用心,记下这浮生相遇,探寻生命的起点和终止!以及他背后的真相……陆规再次睁开眼时,看到自己又躺在了熟悉的沙滩上,他坐了起来,愁眉苦脸的叹了口气,望了会前方平静的海面。 然后抬手一巴掌打在自己脸上,一阵呲牙咧嘴。 “哎呦,疼!下手重了!” …… 此时世界,原海贼王罗杰凉了很久了,而性格神似二傻子一样的路飞,两年后也要出海了。 陆规不知道自己该何去何从,难道走老路,再死一回?培养皿中的世界观苏长生穿越平行世界,居然多了个便宜老爹? 便宜老爹欠缴税款数亿,锒铛入狱,苏长生不得不走上赚钱还款的苦逼道路。 他是娱乐排行榜所有爆火作品的金牌创作者,没有团队,没有助手,不接广告,不接代言,深居简出,神秘莫测。 但却在金牌创作者年度大奖前夜被粉丝曝光,他住着500一个月的廉租房,穿着拼夕夕的廉价打折服装,没房没车,甚至从未吃过一顿像样的美食。 身世曝光,粉丝集体落泪,怒而喊话:圈内明星豪车豪宅花天酒地,腐败不堪,顶流却吃糠咽菜惨绝人寰! 怎能让一股清流在乌烟瘴气的娱乐圈中顽强挣扎! 粉丝集体跪了:求您接点广告吧,求您接点代言吧……这是一部架空的水浒传。 小书生来到大宋朝,在青楼里称雄、太监群里横走,闯大事业、做人上人;和李师师吟诗词,成赵元奴座上客,泡泡公主、郡主,觅觅美娘、娇娘…戏林冲娘子,夺武松嫂子,撩花荣妹子,敢和扈三娘比武艺、陪梁红玉练功夫…没事装装逼,淘淘宝,修侠访道,结交些五湖.四海乱七八糟的好汉,生活是多么美好!可是一不小心身陷国恨家仇的漩涡。是揭竿而起、替天行道?还是以奸制奸、重塑新的大宋? 王伦:我真不想上梁山啊!
龙邮票 邮票互动网 猴年邮票 中国邮票 十二生肖邮票 欧美群迅雷下载 上海邮票网 邮票互动网 邮票市场 邮票市场 民居邮票 欧美群迅雷下载 上海邮票网 女幽灵 百度网盘下载 迅雷下载 民居邮票 邮票价格 鸡年邮票 生肖邮票 邮票互动网 邮票收藏价格表 大龙邮票 世界上第一枚邮票 南京文交所钱币邮票交易中心 民居邮票 民居邮票 中国邮票 十二生肖邮票 奥运邮票 邮票行情 猴年邮票 邮票吧 邮票图片 中国邮票 十二生肖邮票 邮票 欧美群迅雷下载 南京文交所钱币邮票交易中心 鸡年邮票 中国邮票价格表 奥运邮票 都市:我算命超准问苍天之彼岸花开济天:时空造梦人军中情报人天命歌仙魔屠戮场夜雪连城疯狂宠爱的妻子非主流战神奇闻异事传狐妖小红娘: 签到生活我有修行加速器花都邪医俏总裁貔子窝傩侠人在迪迦我老婆是居间惠这星轮居然要认我为主武综大冒险符仙传人在都师浩瀚的校园洛狄沙发请复制到浏览器打开 专业定制浴室柜厂家 崇明二手房出售 角阀价格 雕花板厂家 赣州宜居小区公租房图 大衣橱价格 厦门办公沙发订做哪家好 96964是哪家搬场电话 高第卫浴 隔音罩厂家 浴室柜诺威 水槽价格 金华南苑小区房价 澧县二手房 货架有几种 佛山小区 品牌窗帘店 渝航路33号房价 车库电动卷帘门价格 青岛搬家公司 信息网 富力又一城二手房 藤椅沙发 法陶马桶 上海储物仓库 家具 价格策略 界面剂市场价格 卫生间瓷砖价格 宣城买货架 遥控车库门价格 旋转门价格 绎尚窗帘布 鄂尔多斯仓库 a家家具 莲东小区 专业网吧沙发 新疆和田玉手镯价格 衣柜开门 变衣帽间 达州房价 怎么量窗帘 天津搬家公司的价格 窗帘搭配 整体浴室价格 厦门房价 大连搬家公司 锦绣年华小区 索菲亚衣柜 长沙 水窗帘 西乡好日子电话 除湿机价格 诺维家定制衣柜 李村搬家公司电话 西安四通搬家电话 马桶清洁块 免漆板衣柜 佛山普通浴室柜厂家 智能马桶十大品牌 和通星港务宿舍房价 陶瓷卫浴十大品牌 浴室柜标准 苏州新区龙湖 房价 库博衣柜 梧桐园小区阳台掉落 卫浴小便 麻布窗帘 卫浴品牌 纱窗帘介绍 定制衣柜 设计 新明珠卫浴 房价一把清 窗帘 几层 芜湖三山保定新城房价 帘头里啥是正水波 房价收入比 搪瓷马桶 长沙搬家公司电话 橡木衣柜 木炭价格 广州新款更衣柜订做 室外窗帘 明月港湾房价 沈阳办公室搬家公司 青岛蚂蚁搬家公司招聘 红木家具价格走势 金特小区 组合衣柜 婺城新区文景苑房价 上海塘桥二村小区房价 四川成都房价出租房 搬家公司工作服 玻璃?厂家 丰台区物流公司电话 理想浴室柜 瓷碗厂家 武汉黄陂盘龙城房价 窗帘店前景 砂浆王厂家 电动遥控窗帘 【成都搬家公司 机动泵厂家 深圳新房房价 立体仓库安装