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 as part of Bootstrap is a 940px-wide, 12-column grid.

It also has four responsive variations for various devices and resolutions: phone, tablet portrait, table landscape and small desktops, and large widescreen desktops.

<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

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="span12">
    Level 1 of column
    <div class="row">
      <div class="span6">Level 2</div>
      <div class="span6">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>
Variable Default value Description
@gridColumns 12 Number of columns
@gridColumnWidth 60px Width of each column
@gridGutterWidth 20px Negative space between columns
@siteWidth Computed sum of all columns and gutters Counts number of columns and gutters to set width of the .container-fixed() mixin

Variables in LESS

Built into Bootstrap are a handful of variables for customizing the default 940px grid system, documented above. All variables for the grid are stored in variables.less.

How to customize

Modifying the grid means changing the three @grid* variables and recompiling Bootstrap. Change the grid variables in variables.less and use one of the four ways documented to recompile. If you're adding more columns, be sure to add the CSS for those in grid.less.

Staying responsive

Customization of the grid only works at the default level, the 940px grid. To maintain the responsive aspects of Bootstrap, you'll also have to customize the grids in responsive.less.

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>

Responsive devices

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: 768px) { ... }
// Portrait tablet to landscape and desktop
@media (min-width: 768px) and (max-width: 980px) { ... }
// 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 hidding 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

Test case

Resize your browser or load on different devices to test the above clases.

Visible on...

  • Phone✔ Phone
  • Tablet✔ Tablet
  • Desktop✔ Desktop

Hidden on...

  • Phone✔ Phone
  • Tablet✔ Tablet
  • Desktop✔ Desktop
第三轮生肖邮票女幽灵 百度网盘下载 迅雷下载邮票网猴年邮票中国邮票价格表第三轮生肖邮票欧美群迅雷下载生肖邮票邮票吧文革邮票 时代无情,岁月流逝。想要成为天地间最强大的存在需,勿忘初心,面对世间种种困难,不惧因果,敢于尝试,学会放弃。十四年前,陌生少年初次来到这片陌生的时空。十四年后,少年踏上修玄之路。父母离奇失踪,世界暗流涌动,北界风起云涌,且看南宫清如何乘风破万里浪,纵横玄天大陆!Faker:单杀叶一修?你在开玩笑吧?什么人能单杀一座防御塔?我单杀他的唯一机会就是在输掉比赛后跟他握手的时候。 Theshy:修哥,我们五五开好不好?我们安稳发育好不好?求求你别再单杀我了。 污渍:他才是世界第一VN! 山泥若:修神,永远滴神! 听着众人对自己的评价,叶一修偷偷看了眼自己的白银段位,额头狂冒冷汗。 不懂就问,如果一个世界冠军被人发现其实是个白银的菜逼,会不会被人给打死?在线等,挺急的!!我叫楚枫。 我穿越了,竟然还成为了一只卡比兽! 正准备躺平,结果觉醒了大卡比兽系统 肚子饿了天降能量方块,嗑着磕着突破了 永久失眠换来了自律就能无限变强。 本来我以为自律就是坚持锻炼健身, 没想到触摸极限后,系统居然要我练武,还要横练! 越练越大只 大只,就是强。 写作总是没有头绪,思考较多,写作较少。 不爱学习,很难接受难以理解的新鲜事物。 刚开始写作,以为万事开头难。 后来发现,简直是步步难,一步一重天。 对于喜欢看书多一点的我,写作实在没有什么才情和耐心。 游戏只是游戏,游戏也是工作,除非是竞技类游戏。 小说只是小说,现实谁有空看小说,也许是我看久了小说,觉得没有什么趣味了。 日有所思,夜有所梦。梦只是梦,生老病死,信则有,不信则无。 构思、构思、构思。码字、码字、码字。 一大波小说正在靠近……选取,试读,下载,废寝忘食的读,有选择的观看。 是为观后感,心中所想,化为梦的翅膀。在自由的天地间翱翔…… 重生即为重来,再活一世。穿越即是交换人生,体验不同人生。 拿什么做比较才算贴切,就这双红色唯一的高跟鞋。【热血仙侠+暴爽节奏+六道】 天地有三界,分欲界、色界、无色界。 又分六道,天道,阿修罗道,人道,畜生道,饿鬼道,地狱道。劝君切莫入江湖,殇尽情义断恩仇。只为六重修涅梵,一串故事一家国,君奭转世五百年,懒人成仙一壶酒! 渝王朝八百年江山,随巫咸君奭转世,而危及统治,经王朝智囊精心谋划,一举覆灭巫咸族人,继而找出天星之才,杀灭之! 张跃山便是五百年君奭转世,八岁那年,父母在渝巫大战中被杀害,痛失双亲、家园破灭,迫不得已流浪江湖,幸得百岁剑神暗中护佑培养、传其剑术,助取神兵 渝王朝动用一切势力追杀转世君奭,手段无不用其极,在追杀与暗杀中,江湖朋友一个一个因他而死,从悲苍万分,到重塑心境,从一剑名扬九曲、到仗剑通天云顶,继承绝暝真传,剑震皇宫大内! 三战归清赵析元,为救一生所爱,不入涅梵,不入仙! 遵照预言,神女扶地载之魔大乱渝朝,世间屠灵、一片哀鸿!渝朝恍然醒悟,原来地载之魔才是王朝倾覆之祸,一时大战无休,万劫不复。 张跃山一人、一剑,重出江湖。 一聚仙人气,挥剑斩断阴天河谷,八万乱军莫敢前,巫峡夔门降地魔,终归成了落地仙。 顶级特工失忆,悄然回到故乡; 各国巨头首脑,一夜之间沸腾! “他是可以一人攻破一个国家最高防御的利刃!” “他是医仙王诩的唯一传人,他是医好我不治之症的人!” “他还是我女儿的意中人……” “给我找!不论付出任何代价,一定要找到他!”千年之前,魔君龙尘因白绍灸的叛变,再加上圣魔之乱,他腹背受敌,重伤逃至极地,暗下寻找他的爱人--绝雪,殊不知,她已身中曼陀罗花毒,忘记了他。龙尘踏着暗亚方舟,寻遍七山五岳,可依旧还是一点下落都没有,心灰意冷的龙尘毅然决定魂魄离体,因为只有这样,他才能实现长生,也只有这样,才能找到绝雪…… 其实,魔都兵变时,龙尘曾向他的挚友圣寒发过求救,圣寒接到信后,立刻带着一万精兵从星灵岛出发,援助龙尘,但他们还是晚了一步,当他们赶过去时,龙尘早已不知下落。此后,圣寒始终觉得是自己害了龙尘,所以,他毅然决定触碰灵龙魂第二天赋属性--时间,但,他失败了,神魂陨落,身体化作星光,不复存在,但即使是如此,圣寒还是凭借着强大的精神力,稳住了一丝神识…… 千年之后,龙尘与绝雪的孩子顺着极地的河流,辗转尘世十余载,身体因为受到极寒之冰的影响,依旧是孩童模样,后来,被圣承霄和苏希瞳二人收养,从此开启了属于他的人生……世道不靖,民生皆苦。 黑暗里的幽灵,星空中的刺客。 天上地下屠魔弑神,只为创造一个美好的世界! 他是一个来自异世界的灵魂。 不甘心命运被安排,反感这个恶者逍遥自在,善者不得善终的黑暗世界。 为了实现理想,他一路苟着做人,努力积蓄力量,终于改天换日,重塑乾坤!
文革邮票 大龙邮票 龙邮票 邮票网 奥运邮票 纪念邮票 邮票互动网 邮票图片 邮票图片 第三轮生肖邮票 邮票价格 邮票互动网 南京文交所钱币邮票交易中心 欧美群迅雷下载 邮票收藏价格表 猴年邮票 生肖邮票 邮票行情 邮票收藏 世界上第一枚邮票 邮票收藏 第三轮生肖邮票 民居邮票 香港回归纪念邮票 十二生肖邮票 民居邮票 邮票互动网 邮票交易所 大龙邮票 上海邮票网 中国邮票 猴年邮票 邮票收藏 邮票互动网 龙邮票 奥运邮票 上海邮票网 中国邮票 邮票吧 南京文交所钱币邮票交易中心 剑缘凌雨重生,自带无限技能上门女婿是帝尸出生即碾压无数天骄为新神的诞生献上荆棘王冠神话入侵:我在地球斩神明缘修记格格鸡成长记契约双刃奇诡水灵师诡颂漫维游记我在恶魔时代当战神御歌行仙气冲天本公子讲歪道理,你讲什么签到万年,身份被美女徒孙曝光了残阳如血青山魂赴灭乾坤夕阳王朝亚星游戏官网 亚星游戏官网 亚星官网 亚星官网 亚星官网 亚星游戏官网 亚星官网 亚星官网 亚星游戏官网 亚星官网 亚星游戏官网 亚星游戏官网 亚星官网 亚星官网 亚星游戏官网 【薇-電1322 8888 433】皇冠登3出租 【薇-電1322 8888 433】皇冠登3出租 皇冠登3出租 薇-電 132-②⑧⑧⑧-8433 【薇-電1322 8888 433】皇冠登3出租 【薇-電132-②⑧⑧⑧-8433】皇冠登3出租 快链加速器 - 上海曲德曲网络科技有限公司 快链加速器 - 上海曲德曲网络科技有限公司 快链加速器 - 上海曲德曲网络科技有限公司 Lets快连 - 上海曲德曲网络科技有限公司 快链加速器 - 上海曲德曲网络科技有限公司 快链下载 - 上海曲德曲网络科技有限公司 快链下载 - 上海曲德曲网络科技有限公司 快连官网 - 上海曲德曲网络科技有限公司 快连官网 - 上海曲德曲网络科技有限公司 快链加速器 - 上海曲德曲网络科技有限公司