diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/css/flex-flow | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/zh-cn/web/css/flex-flow')
-rw-r--r-- | files/zh-cn/web/css/flex-flow/index.html | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/files/zh-cn/web/css/flex-flow/index.html b/files/zh-cn/web/css/flex-flow/index.html new file mode 100644 index 0000000000..bbdf1afc30 --- /dev/null +++ b/files/zh-cn/web/css/flex-flow/index.html @@ -0,0 +1,110 @@ +--- +title: flex-flow +slug: Web/CSS/flex-flow +translation_of: Web/CSS/flex-flow +--- +<div>{{ CSSRef("CSS Flexible Boxes") }}</div> + +<h2 id="概述">概述</h2> + +<p> + <a href="/zh-CN/docs/Web/CSS">CSS</a> <strong><code>flex-flow</code></strong> 属性是 flex-direction 和 flex-wrap 的简写。 +</p> + +<p>{{cssinfo}}</p> + +<p>更多信息参见 <a href="/zh-CN/docs/Web/Guide/CSS/Flexible_boxes">使用 CSS 弹性盒</a></p> + +<h2 id="语法">语法</h2> + +<pre class="syntaxbox"><a href="/zh-CN/docs/CSS/Value_definition_syntax" title="/zh-CN/docs/CSS/Value_definition_syntax">Formal syntax</a>: {{csssyntax("flex-flow")}}</pre> + +<h3 id="取值"><strong>取值</strong></h3> + +<p><code>更多取值信息请查看</code> <a href="/zh-CN/docs/CSS/flex-direction" title="zh-CN/docs/CSS/flex-direction"><code>flex-direction</code></a> 和 <a href="/zh-CN/docs/CSS/flex-wrap" title="flex-wrap"><code>flex-wrap</code></a></p> + +<h2 id="示例">示例</h2> + +<pre class="brush:css;highlight:3">element { + /* Main-axis is the block direction with reversed main-start and main-end. Flex items are laid out in multiple lines */ + flex-flow: column-reverse wrap; +} +</pre> + +<h2 id="Specifications" name="Specifications">查询参考</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + </thead> + <tbody> + <tr> + <td><a class="external" href="http://dev.w3.org/csswg/css3-flexbox/#flex-flow" title="http://dev.w3.org/csswg/css3-flexbox/#flex-flow">CSS Flexible Box Layout Module</a></td> + <td>{{ Spec2('CSS3 Flexbox') }}</td> + <td> </td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + +<p>{{ CompatibilityTable() }}</p> + +<div id="compat-desktop"> +<table class="compat-table"> + <tbody> + <tr> + <th>特性</th> + <th>Firefox (Gecko)</th> + <th>Chrome</th> + <th>Internet Explorer</th> + <th>Opera</th> + <th>Safari</th> + </tr> + <tr> + <td>基础支持</td> + <td>28.0</td> + <td> + <p><span style="font-size: 12px; line-height: 18px;">21.0{{property_prefix("-webkit")}}</span><br> + <span style="font-size: 12px; line-height: 18px;">29.0</span></p> + </td> + <td>11</td> + <td>12.10</td> + <td><span style="font-size: 12px; line-height: 18px;">6.1{{ property_prefix("-webkit") }}</span></td> + </tr> + </tbody> +</table> +</div> + +<div id="compat-mobile"> +<table class="compat-table"> + <tbody> + <tr> + <th>Feature</th> + <th>Firefox Mobile (Gecko)</th> + <th>Android</th> + <th>IE Phone</th> + <th>Opera Mobile</th> + <th>Safari Mobile</th> + </tr> + <tr> + <td>基础支持</td> + <td>28.0</td> + <td>{{ CompatUnknown() }}</td> + <td>11</td> + <td>12.10</td> + <td><span style="font-size: 12px; line-height: 18px;">7.1{{ property_prefix("-webkit") }}</span></td> + </tr> + </tbody> +</table> +</div> + +<h2 id="另参见">另参见</h2> + +<ul> + <li><a href="/zh-CN/docs/CSS/Using_CSS_flexible_boxes" title="/zh-CN/docs/CSS/Using_CSS_flexible_boxes">使用 CSS 弹性盒子</a></li> +</ul> |