aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/css/transform-style
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-style
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-style')
-rw-r--r--files/zh-cn/web/css/transform-style/index.html76
1 files changed, 76 insertions, 0 deletions
diff --git a/files/zh-cn/web/css/transform-style/index.html b/files/zh-cn/web/css/transform-style/index.html
new file mode 100644
index 0000000000..c459a312d4
--- /dev/null
+++ b/files/zh-cn/web/css/transform-style/index.html
@@ -0,0 +1,76 @@
+---
+title: transform-style
+slug: Web/CSS/transform-style
+translation_of: Web/CSS/transform-style
+---
+<div>{{SeeCompatTable}}</div>
+
+<p><a href="/en-US/docs/Web/CSS">CSS</a> 属性 <strong><code>transform-style </code></strong>设置元素的子元素是位于 3D 空间中还是平面中。</p>
+
+<div>{{EmbedInteractiveExample("pages/css/transform-style.html")}}</div>
+
+
+
+<p>如果选择平面,元素的子元素将不会有 3D 的遮挡关系。</p>
+
+<p>由于这个属性不会被继承,因此必须为元素的所有非叶子子元素设置它。</p>
+
+<h2 id="语法">语法</h2>
+
+<pre class="brush:css no-line-numbers">/* Keyword values */
+transform-style: flat;
+transform-style: preserve-3d;
+
+/* Global values */
+transform-style: inherit;
+transform-style: initial;
+transform-style: unset;
+</pre>
+
+<h3 id="值">值</h3>
+
+<dl>
+ <dt><code>flat</code></dt>
+ <dd>设置元素的子元素位于该元素的平面中。</dd>
+ <dt><code>preserve-3d</code></dt>
+ <dd><span class="tlid-translation translation" lang="zh-CN"><span title="">指示元素的子元素应位于 3D 空间中。</span></span></dd>
+</dl>
+
+<h3 id="正式语法">正式语法</h3>
+
+<pre class="syntaxbox">{{csssyntax}}</pre>
+
+<h2 id="规范">规范</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('CSS Transforms 2', '#transform-style-property', 'transform-style')}}</td>
+ <td>{{Spec2('CSS Transforms 2')}}</td>
+ <td>Initial definition.</td>
+ </tr>
+ </tbody>
+</table>
+
+<p>{{cssinfo}}</p>
+
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
+
+
+
+<p>{{Compat("css.properties.transform-style")}}</p>
+
+<h2 id="另见">另见</h2>
+
+<ul>
+ <li><a href="/en-US/docs/CSS/Using_CSS_transforms">Using CSS transforms</a></li>
+</ul>
+
+<div>{{CSSRef}}</div>