aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/svg/attribute/styling/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/svg/attribute/styling/index.html')
-rw-r--r--files/zh-cn/web/svg/attribute/styling/index.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/files/zh-cn/web/svg/attribute/styling/index.html b/files/zh-cn/web/svg/attribute/styling/index.html
new file mode 100644
index 0000000000..827a474ca3
--- /dev/null
+++ b/files/zh-cn/web/svg/attribute/styling/index.html
@@ -0,0 +1,33 @@
+---
+title: SVG样式属性
+slug: Web/SVG/Attribute/Styling
+translation_of: Web/SVG/Attribute/Styling
+original_slug: Web/SVG/Attribute/样式
+---
+<p>SVG样式属性是所有可以在任何SVG元素上指定以应用CSS样式效果的属性。</p>
+
+<div class="index">
+<ul>
+ <li><a href="#attr-class"><code>class</code></a></li>
+ <li><a href="#attr-style"><code>style</code></a></li>
+</ul>
+</div>
+
+<h2 id="属性">属性</h2>
+
+<dl>
+ <dt id="attr-class">{{SVGAttr('class')}}</dt>
+ <dd>给一个元素分配一个类名称或者设置类名。它跟 HTML中的{{htmlattrxref('class')}}属性具有同样的功能。<br>
+ <small><em>Value</em>: 任何可用的ID字符; <em>Animatable</em>: <strong>Yes</strong></small></dd>
+ <dt id="attr-style">{{SVGAttr('style')}}</dt>
+ <dd>它指定元素的样式信息。它跟HTML中 {{htmlattrxref('style')}}属性具有相同的功能。<br>
+ <small><em>Value</em>:任何可用的ID字符; <em>Animatable</em>: <strong>No</strong></small>
+ <p> </p>
+ </dd>
+</dl>
+
+<h2 id="浏览器支持">浏览器支持</h2>
+
+<div class="hidden">此页面上的兼容性表有结构化数据产生。如果你想贡献数据,请查看<a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> 和发送给我们一个请求。</div>
+
+<p>{{Compat("svg.attributes.style")}}</p>