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.


岳阳复新瑞科技有限公司

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>

延安升永通服务有限公司

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.

雅安欣满恒服务有限公司

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>

东营本顺如贸易有限公司

1
1
1
1
1
1
1
1
1
1
1
1
4
4
4
4
8
6
6
12

苏州福晶庆贸易有限公司

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.

瓦房店荣寿新贸易有限公司

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.

东胜昌欣泰设备有限公司

<div class="row-fluid">
  <div class="span4">...</div>
  <div class="span8">...</div>
</div>

咸阳荣和国机械有限公司

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

阳江生公台科技有限公司

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.

哈密高亨华机械有限公司

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.

西昌安旺高设备有限公司

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.

敦化旺辉盈有限公司

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>

通化盈盈瑞服务有限公司

<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>

禁止的爱善良的小峓子

洮南德协荣设备有限公司

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.

丽江义光复商贸有限公司

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

河北省康浩大机械有限公司

To ensure devices display responsive pages properly, include the viewport meta tag.

<meta name="viewport" content="width=device-width, initial-scale=1.0">

长治满浩光设备有限公司

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) { .. }

玉门安旺高有限公司

扬州华国百科技有限公司

For faster mobile-friendly development, use these basic utility classes for showing and hidding content by device.

天门晶皇旺有限公司

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.

青铜峡捷成汇有限公司

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

丽江福泰合有限公司

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

新乡安如久商贸有限公司

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

内蒙古旺辉盈机械有限公司

  • Phone✔ Phone
  • Tablet✔ Tablet
  • Desktop✔ Desktop
盘她2s直播app下载 软件 豆奶抖音短视频app污 秋葵视频.apk下载下载ios版 聚合直播 XXXtentacion高清国产 男女性高爱潮视频一级 水蜜蜜 .www红色一片在线播放 最新台湾SWAG在线观看 屄图 2019最新无码国产在线视频 草莓app视频下载 吴施蒙成都 在线看 逗比羊 亚洲BBw性色大片 f2代app短视频下载 芭乐视频污下载app污官网 草莓APP污 年轻人看的视频 avtt天堂网 盘她2s直播app下载 软件 国产精品在线观看 国产高清在线a视频大全 黑帽门 小草视频高清在线观看免费 麻豆传媒赵佳美家纺 茄子下载app污免费 陈冠希门事件全套视频 亚洲性线免费观看视频成熟 100发饮精吞精在线播放 男女高潮吃奶添下面视频 食色APP 久久热精品 任你躁国语在线播放 青青河边草新视频免费观看 狼人香蕉香蕉在线28视频2019 富二代国产app 久爱成疾在线视频 丝瓜视频在线看 丝瓜app官方网 丝瓜视频最新版下载 9uu下载 老司机在线ae85 豆奶短视频.app免费 亚洲 日韩 在线 国产 精品 月光影院免费版在线 仙仙影院 朋友的东西太大了 联合早报南略中文网 激情片 石榴社区 1314tvapp 蜜桃成熟时在线看免费 小草在线观看播放 视频 联合早报南略中文网 男啪女色黄无遮动态图 香草视频app下载最新版 麻豆传媒映画 在线播放麻豆传媒原创 麻豆传媒视频免费版 别急今晚让你弄个够 女人本色高清在线观看 丝瓜888app最新版本免费 五月丁香中文幕 久久vs国产综合色 抖音app污短视频破解版 D2官网 磁力天堂在线 国语自产精品视频学生在线 麻豆影视传媒网站在线 龙猫网 小草在线观看播放 视频 男女插孔免费网站大全 暖暖视频免费播放完整版日本 8090电影 樱桃污成视频人app下载安装 A片真人视频免费观看 媚妹秀 香蕉短视频aPP污 在线播放五十路乱中文 无限资源在线观看 一本大道专区高清免费 三级潘金莲1一5集 佳丽直播 免费AV片在线观看蜜芽tv mm101 51vv视频社区福利 天堂视频看看在线观看 三级潘金莲1一5集 女女互慰潮喷在线观看 日本直播120秒免费 很黄很黄的激吻视频 饥渴少妇大战三黑鬼 暖暖免费视频 麻豆传媒app 台湾swag在线完整观看 草莓视频丝瓜视污 水果视频在线观看 猫咪短视频官网app 半夜小旅馆嫖妓少妇 91东北足疗精彩对白 伊人久久大香线蕉综合 yahoo日本成熟老师 豆奶视频app破解版在线下载 榴莲视频污版安卓下载安装