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.
听起来似乎很温和,没有颠覆任何东西。一个案例成功与否的标志就是你的受众是否愿意帮你去自发传播,Keep这次做的非常棒,让每个用户都成为了自己的传播渠道。
<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创业网微信二维码,定期抽大奖。 坤鹏论认为,人有七情六欲,少了一个都会失衡不完整,就和那句名言所说的一样,人生就像心电图,一帆风顺就挂了,情绪也一样,有起有伏,敢爱敢恨,才算心理健康,否则不是傻了就是疯了! 只有品尝过痛苦,才会知道幸福的甘甜! 从今天开始,别再执念幸福,可能幸福就会在明天的灯火阑珊处! 最后的最后,再补充一句忠告:现如今,你可以做的让你未来肯定能幸福的事情,就是用尽你的洪荒之力把手里的货币换成优质资产! 凡是那些现在高喊90后就别买京沪深的XX了的人儿,要不是不懂经济,要不就是明知故骗,哗众.......取宠! 绝对是又一个说自己卖房创业,其实去香港炒股赚了又回北京买房的罗振宇! 坤鹏论由三位互联网和媒体老兵封立鹏、滕大鹏、江礼坤组合而成,坤鹏论又多了位新成员:廖炜。
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 |
业内人士分析认为,影视资本市场的骤然变冷主要有三个方面原因: 1.监管层出台了更严厉的政策,过往几年大量热钱造成的非理性泡沫开始消退; 2.资本急功近利,取代艺术创作推动行业发展,导致内容价值被掏空,烂片横行; 3.泛金融技法的运用扰乱了合理的市场秩序,“保底”“对赌”“P2P”等资本市场惯用伎俩被复制到电影发行中,加上票房造假现象层出不穷,电影变成了简单粗暴的票房游戏。
<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.
同样情况的还有小米,大家都知道,最开始小米手机是有先发优势的,在它推出成熟智能手机的时候,国内还没有对手,所以2013年和2014年小米在各项数据报告里总是国产手机的出货量第一,总是天猫和京东双十一的销售冠军。 3月7日,左驭资本执行董事韩泽、娱乐工场合伙人刘献民、星座女神创始人莫小棋、淘梦网创始人兼CEO阴超以“内容付费的春天要来了吗?”为主题展开线上讨论,包括:①娱乐行业里的内容付费和内容变现;②知识付费;③观众问答。
挂牌时间超过三个月,既没有成交也没有融资的企业,读懂君称之为“僵尸股”。几个月后,腾讯成为了公司B轮的投资者,投资额为2000万美元。
2016年上半年,全美在线实现营业收入1.36亿元,与去年同期相比增长了110%;净利润1347.38万元,与去年同期相比增加了16.02%。 「30岁时还是想自己做点事情,所以就离开新浪出来自己创业,后来创业的两家公司都死在了A轮。
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 |