aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/css/transform-box
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/css/transform-box
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/zh-cn/web/css/transform-box')
-rw-r--r--files/zh-cn/web/css/transform-box/index.html121
1 files changed, 121 insertions, 0 deletions
diff --git a/files/zh-cn/web/css/transform-box/index.html b/files/zh-cn/web/css/transform-box/index.html
new file mode 100644
index 0000000000..c92254530b
--- /dev/null
+++ b/files/zh-cn/web/css/transform-box/index.html
@@ -0,0 +1,121 @@
+---
+title: transform-box
+slug: Web/CSS/transform-box
+translation_of: Web/CSS/transform-box
+---
+<div>{{CSSRef}}{{SeeCompatTable}}</div>
+
+<h2 id="概述">概述</h2>
+
+<p><strong><code>transform-box</code></strong>属性定义了与 {{cssxref("transform")}}、{{cssxref("transform-origin")}} 这两个属性有关联的布局框。</p>
+
+<p>{{cssinfo}}</p>
+
+<h2 id="语法">语法</h2>
+
+<pre class="brush: css">/* Keyword values */
+transform-box: border-box;
+transform-box: fill-box;
+transform-box: view-box;
+
+/* Global values */
+transform-box: inherit;
+transform-box: initial;
+transform-box: unset;
+</pre>
+
+<p><code>transform-box</code>属性被指定为以下所列出的关键字值之一。</p>
+
+<h3 id="值">值</h3>
+
+<dl>
+ <dt><code>border-box</code></dt>
+ <dd>border box是用作引用框,一个表格(table)的border-box是table包装盒的边框,而不是表的边框。</dd>
+ <dt><code>fill-box</code></dt>
+ <dd>Uses the object bounding box as reference box.</dd>
+ <dt><code>view-box</code></dt>
+ <dd>Uses the nearest {{Glossary("SVG")}} viewport as reference box. If a {{SVGAttr("viewBox")}} attribute is specified for the SVG viewport creating element, the reference box is positioned at the origin of the coordinate system established by the <code>viewBox</code> attribute and the dimension of the reference box is set to the width and height values of the <code>viewBox</code> attribute.</dd>
+</dl>
+
+<h3 id="Formal_syntax">Formal syntax</h3>
+
+<pre class="syntaxbox">{{csssyntax}}</pre>
+
+<h2 id="Specifications">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>{{SpecName('CSS3 Transforms', '#transform-box', 'transform-box')}}</td>
+ <td>{{Spec2('CSS3 Transforms')}}</td>
+ <td>Initial definition</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility">Browser compatibility</h2>
+
+<p>{{ CompatibilityTable }}</p>
+
+<div id="compat-desktop">
+<table class="compat-table">
+ <tbody>
+ <tr>
+ <th>Feature</th>
+ <th>Chrome</th>
+ <th>Firefox (Gecko)</th>
+ <th>Internet Explorer</th>
+ <th>Opera</th>
+ <th>Safari</th>
+ </tr>
+ <tr>
+ <td>Basic support</td>
+ <td>{{CompatNo()}}</td>
+ <td>{{CompatGeckoDesktop("41.0")}}<sup>[1]</sup></td>
+ <td>{{CompatNo()}}</td>
+ <td>{{CompatNo()}}</td>
+ <td>{{CompatUnknown()}}</td>
+ </tr>
+ </tbody>
+</table>
+</div>
+
+<div id="compat-mobile">
+<table class="compat-table">
+ <tbody>
+ <tr>
+ <th>Feature</th>
+ <th>Android</th>
+ <th>Chrome for Android</th>
+ <th>Firefox Mobile (Gecko)</th>
+ <th>IE Mobile</th>
+ <th>Opera Mobile</th>
+ <th>Safari Mobile</th>
+ </tr>
+ <tr>
+ <td>Basic support</td>
+ <td>{{CompatUnknown()}}</td>
+ <td>{{CompatUnknown()}}</td>
+ <td>{{CompatGeckoDesktop("41.0")}}<sup>[1]</sup></td>
+ <td>{{CompatUnknown()}}</td>
+ <td>{{CompatUnknown()}}</td>
+ <td>{{CompatUnknown()}}</td>
+ </tr>
+ </tbody>
+</table>
+</div>
+
+<p>[1] This property is implemented in Gecko 43.0 {{geckoRelease("43")}} behind the preference <code>svg.transform-box.enabled</code>, defaulting to <code>false</code>. Initially it was implemented in Gecko 41.0 {{geckoRelease("41")}} with the preference named <code>svg.transform-origin.enabled</code>. See {{bug("923193")}} and {{bug("1208550")}}.</p>
+
+<h2 id="See_also">See also</h2>
+
+<ul>
+ <li><a href="/en-US/docs/CSS/Using_CSS_transforms" title="/en-US/docs/CSS/Using_CSS_transforms">Using CSS Transforms</a></li>
+</ul>