aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/svg/attribute/preservealpha
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/svg/attribute/preservealpha')
-rw-r--r--files/zh-cn/web/svg/attribute/preservealpha/index.html45
1 files changed, 45 insertions, 0 deletions
diff --git a/files/zh-cn/web/svg/attribute/preservealpha/index.html b/files/zh-cn/web/svg/attribute/preservealpha/index.html
new file mode 100644
index 0000000000..4502b99bbf
--- /dev/null
+++ b/files/zh-cn/web/svg/attribute/preservealpha/index.html
@@ -0,0 +1,45 @@
+---
+title: preserveAlpha
+slug: Web/SVG/Attribute/preserveAlpha
+translation_of: Web/SVG/Attribute/preserveAlpha
+---
+<p>« <a href="/en/SVG/Attribute" title="en/SVG/Attribute">SVG 属性参考</a></p>
+
+<p><code>preserveAlpha</code> 属性表示{{ SVGElement("feConvolveMatrix") }} 元素怎样处透明度。</p>
+
+<p>取值为 <code><span class="attr-value">false</span></code> 表示 feConvolveMatrix 元素将应用在包括透明度通道的所有的通道。这是默认的选项。</p>
+
+<p>取值为 <code><span class="attr-value">true</span></code> 表示 feConvolveMatrix 仅应用在颜色通道。</p>
+
+<h2 id="用法">用法</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="row">类别</th>
+ <td>None</td>
+ </tr>
+ <tr>
+ <th scope="row">值</th>
+ <td><code>true</code> | <code>false</code></td>
+ </tr>
+ <tr>
+ <th scope="row">可变性</th>
+ <td>Yes</td>
+ </tr>
+ <tr>
+ <th scope="row">规范文档</th>
+ <td><a href="http://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElementPreserveAlphaAttribute" rel="external">SVG 1.1 (2nd Edition)</a></td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="示例">示例</h2>
+
+<h2 id="元素">元素</h2>
+
+<p>下列元素可以使用 <code>preserveAlpha</code> 属性</p>
+
+<ul>
+ <li>{{ SVGElement("feConvolveMatrix") }}</li>
+</ul>