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.
<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.
.span3 columns should be placed within a .span6.
<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>
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.
我前面说到有所为有所不为,对我们来说不会看金融,但可能跟合作伙伴蚂蚁金服做金融合作,同时给出更好的服务体验。在我们开始互相PK之前,你有没有什么话要说? 张旭豪:这次的主题是打仗,等会儿我会多谈谈打仗方面的东西。
<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.
<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>
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.
”document.writeln('关注创业、电商、站长,扫描A5创业网微信二维码,定期抽大奖。最近的很多报道都指出了公关公司和部分企业PR,可能是受百度取消新闻源影响最大的一个群体,这和他们的考核方式直接相关。
而和俏江南一样走高端路线的小南国,却机智地开了个小号,叫做南小馆,专走平民路线,在香港创下了高达5次的日均翻台率。 另一部让江苏稻草熊影业在业内声名鹊起的作品是《蜀山战纪》,这是江苏稻草熊影业的原创IP。
| 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 |
著名的领导力大师诺尔·蒂奇把讲出来教别人称之为领导力的关键要素之一——可教。
<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:
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) { ... }
For faster mobile-friendly development, use these basic utility classes for showing and hiding content by device.
按照这个趋势,2年后的VR市场规模不会超过200亿美元。 1、购物环境简直让人愉悦到飞起 与传统Mall相比,如今消费者往往更加注重购物时来带的愉悦体验,而非冷冰冰的采购过程。
对此,他举了个自己的例子:毕业后在第一家公司工作时,由于技术达到一定水平,日常的工作任务对自己来说已无挑战,他便利用业余时间,花两个晚上帮公司某个和自己并不相关的部门,开发出了一款提高日常工作效率的测试软件。 对此,有棵树公司表示,在接到国家质检总局发布的警示通报后,已经在第一时间将日本食品全线下架,并对此前售出的不符合通报的卡乐比麦片进行追回,向客户表达诚挚的歉意,并已在着手进行赔付。
任正非自问自答我们的对手是谁?是不要命烧钱的互联网公司。 根据钛媒体TMTbase全球数据库显示,1398家彻底关闭的创业公司中,电子商务、本地生活、社交、企业服务、文化娱乐为重灾区,关闭数量分别为218家、141家、134家、128家、123家。
| Class | Phones 480px and below | Tablets 767px and below | Desktops 768px and above |
|---|---|---|---|
.visible-phone |
Visible | Hidden | Hidden |
.visible-tablet |
Hidden | Visible | Hidden |
.visible-desktop |
Hidden | Hidden | Visible |
.hidden-phone |
Hidden | Visible | Visible |
.hidden-tablet |
Visible | Hidden | Visible |
.hidden-desktop |
Visible | Visible | Hidden |