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
信息安全等级保护第五级网络安全的字体直复营销最初形态是:国家信息安全一级认证营销术语.网络营销网上观察法宜春网站建设三合一网站建设是指网络营销体系都有什么什么软件做网站好自建网站的缺点网站建立个人信息安全培训通知网络安全等级测评要求武汉本土互联网站在线营销策略信息安全业务种类网络营销促销案例分析专业网站设计动力无限做网站免费网站制作推广网站建立馆陶网站建设信息安全动态,-1怎样学好网络营销武大 信息安全营销型企业网站策划方案4i营销理论的优缺点信息安全管理的基本任务信息安全动态,-1一对姐妹一个生而为仙,一个生而为魔,两人被全修仙界追杀,所有人都想要将她们的先天灵气据为己有,在危难之际,她们被迫跳下了陨仙峡,变成两个婴儿落在了一个不知名的山上,被一个人捡到收为了女儿,她们一直以为他只是一个普通人,直到满界魔与仙又一次追杀她们来到这里,他没有逃只是轻轻笑了一声说:“敢打我女儿的主意,看来我已经被世人淡忘了啊!”说罢,一挥手重伤遍天仙魔“打我女儿的主意,天我都给他捅了!”中华大地,文化博大精深,源远流长,造就一批批的文人才子,王侯将相,普通大众,也就是再这样的情况下,成就今天的中华文化,中华精神。 从小民百姓到达官贵人,从富丽堂皇到乡野之地,从雍容华贵到下里巴人,在这里,我们将会一一领会 文王到始皇,汉高祖到唐太宗,以及王侯将相宁有种乎,都在这里尽情的展翅高飞,发挥属于自己的时代 两年后,被军中战友称为“狂神屠灭者”传奇战神的特战兵王江晓如约归来,面对人事皆非的境况,该如何取舍,面对一步步浮出水面的暗黑真相,又该如何抉择! 世间的真爱该如何诠释,人间的正义又该如何解读。 孤儿江晓与独女简雯在一个城市读书,相恋四年,彼此深爱,毕业时江晓为追寻自己儿时便已植根内心深处的梦想做了一个让简雯无法理解也很难接受的决定,选择入伍。入伍临行前,两人定下两年之约。 两年后,成为特战兵王的江晓为两年之约离开了那片让他挥洒过无数血和汉承载着作为军人荣耀的火热军营。 回来后,却发现外面的世界已经不是自己认识的那个样子,简雯也变得如此陌生,所有的一切已人事皆非…… 不甘心的江晓不相信所看到的一切,化身“大侦探”的江晓随着调查的深入,一步步发现原来事情远没有自己想的那么简单…… 爱恨交织,黑白无道。 为守护爱和正义,江晓一步步走上了孤勇的战斗之路……阿伯说:“小恭啊,我看好你,北齐的未来,就交到你手里了。”兰兰姐说:“去了前线,要做个男子汉呦,不许再哭鼻子了。”小小米说:“长恭哥哥,你教我的小纸鹤,我已经可以叠的很漂亮了呢。等你走后,我每天叠一只,你回来以后,我把他们都送给你。”穿上盔甲,带上面具,他就是神勇无敌的兰陵王。不再是那个流落街头跟一群乞丐抢窝头吃,像狗一样趴在地上吃东西的孤儿。只是啊,他好怀念从前的时光,他不是兰陵王。逍遥自然,离奇古怪,理性奇幻。未世来临,无数人变异,无数人死去。人类只能在夹缝中生存,与各种异种周旋,混出一条生路来。姜丰是个小人物,没有什么大志向,可偏偏命运不会放过他,在他的生存路上,无数的危险,无数的恶梦,通通让他碰到,他拼命挣扎,要保全爱人、家人、朋友的生命,也要保全自己的生命,非常难,特别难,但是必须做。 人生逍遥路漫漫,慢修吾心妄烟云, 运极命数皆注定,鼎立混沌独自清。 罄音撩灵安坐钟,终了余生残破魂, 魂归故里望长生,深入宇空宙已寂。 漫定钟生,慢鼎终深。 人运罄魂,云清魂寂。穿越大唐,意外成为李靖的第三个儿子。 因刚穿越的他按照系统指示逃婚,两年后,对突厥用兵的李靖与李世民发现了他的踪迹......然后他们就懵了,这是什么?没见过吧土鳖,这叫华子,可好抽了,老李,你今有口福了,来吹瓶啤酒。一个平凡的摸鱼打工人,一次宿醉后莫名转生异界。 获得了先天灵根,开启了一段朋克的修仙生涯。自混沌初开,法则之力充斥世界,造就三千世界,而每个世界的原住民们,逐渐领悟法则的法门,集力量于一身,冲破世界的禁锢,成就神位。成就神位的人们仍然禁锢于另一方世界的一隅,在他们的前面仍然有法则之上的力量-原力阻碍他们的前行。当他们举步维艰时,发现每隔一万年,就会打开三千世界的桥梁,就能领悟原力冲破此世界,真正法身成圣,神位转换为圣位,不过成就圣位的条件却十分苛刻,需要人间香火的供奉,为拥有神位的人提供信仰之力,并且两个世界的神位者们决胜出一位圣者位, “我会再回来的,道祖,儒圣,虽然我败了,但你二人绝对在接下来的圣位战被打败,哈哈哈哈…哈哈”, “大言不惭,汝等卑鄙之人,不配存活于世,即使你窃取到轮回法则,不过你已被法则抛弃,下一世定有人将你彻底陨灭”儒圣对着此人闻言道,看着此人在身体逐渐泯灭之际,有一丝魂魄被牵引到一户人家当中,对此眉头紧紧的皱在一起,与道祖相视一眼后,飞向天空上方的桥梁。 徐小山穿越到御兽为主的灵界,却发现自己修炼天赋极差。 正当绝望,开启赐福系统,凡是被赐福者能获得各种机缘。 在他手中,一只普通的食铁兽可以成为震慑古今的武道宗师; 断翅的仙鹤也能御剑而行,终成一代剑仙; 骄傲的孔雀玩起了枪炮…… 在他手中出现了一群奇葩却强大的灵兽。 看到这个结果,徐小山诞生了一个伟大的理想,他要开创一条不一样的御兽之路。未来不仅只有星空大海,还有神话永生!自小能与神秘盖亚生命互换灵魂的东希,如何在这个世界走上巅峰!
账户信息安全管理的核心内容,-1 信息安全等级保护第五级 手机网站设计机构 网站设计和制作费用 免费网站制作推广 个人信息安全培训通知 网络营销网上观察法 聚美营销策略 英文版 特朗普发布网络安全法 咨询网站设计 网络营销资讯站 工业信息安全培训 电子邮件营销文本 网站显示百度地图 石家庄移动端网站建设 网站总类 获信息安全服务资质二级 深圳全网营销总裁班 三合一网站建设是指 三合一网站建设是指 营销术语. 网站建立 医院网站建设 价格 网络安全110 国家信息安全一级认证 网络信息安全部门 莆田网站建设 访客网络安全吗 免费网站制作推广 设计企业网络安全方案 网络安全案例视频 武汉本土互联网站 太原推广型网站开发 商务营销软件 宜春网站建设 网站显示百度地图 简述网营销的优势 我国信息安全认证包括 自制app网站 银行网络安全事件