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.
同样情况的还有小米,大家都知道,最开始小米手机是有先发优势的,在它推出成熟智能手机的时候,国内还没有对手,所以2013年和2014年小米在各项数据报告里总是国产手机的出货量第一,总是天猫和京东双十一的销售冠军。 刚创业的前三四个月资金紧张,所以三个人商量就租个200平米的办公区。
<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.
社交的需求:即便是在端游的时代,各个网络游戏甚至是单机游戏都在想方设法的在游戏内加入社交和真人对抗的元素,因为只有人与人之间的互动才是最具有用户粘性的,但是PC机的时代,玩游戏要么是在家,要么是在网吧,很难经常聚集起足够多的认识的人一起玩同一款游戏,而且游戏里的陌生人是很难互相开始社交和互动的。不过从与终止与蚂蚁金服的投资合作来看,永安行对于现在“无桩”的共享单车市场,忧虑与观望才是其现在真实的内心活动。
” 他解释,假如你在一个反恐部门工作,目标是掌握恐怖分子的踪迹,以便进行精准打击。 雷军在历史转折期间答错的题,可能比答对的这道更贵,毕竟目前小米估值腰斩的说法甚嚣尘上。
| 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 |
(本文首发钛媒体)document.writeln('关注创业、电商、站长,扫描A5创业网微信二维码,定期抽大奖。
<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.
”这道禁令让创始人吴尚志在在中国国际金融有限公司(以下简称“中金”)工作了7年之后面临“失业”的境地。 张旭豪:要研究得非常非常透,不要认为别人是傻子,永远没有傻子,能活到现在都是非常优秀的创业者,要抱着学习的心态走下去。
当初蔡文胜将265.com以几千万美元卖给谷歌中国时,还顺带送了一个G.cn域名。并且一着不慎,甚至连从头来过的机会都没有。
而运营和推广,只需要借助势的力量,顺势而为即可。 但是最后的最后,不知道是觉得小米已经盈利不需要稀释太多股份,还是不喜欢强势投资人在自己耳边吹风,所以最后他拒绝了这位中国人民的老朋友。
| 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 |