aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/svg/attribute/mask/index.html
blob: ff53cdecffadd8173e912d49425cac6bb4a6e4e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
title: mask
slug: Web/SVG/Attribute/mask
tags:
  - SVG
  - SVG属性
  - 需要兼容性表
translation_of: Web/SVG/Attribute/mask
---
<p>« <a href="/en/SVG/Attribute" title="en/SVG/Attribute">SVG属性参考主页</a></p>

<p><code>mask</code>属性绑定的元素将应用给定的{{ SVGElement("mask") }}元素。</p>

<p>作为一个外观属性,它可以直接用作CSS样式表内部的属性。</p>

<h2 id="用法">用法</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="row">类别</th>
   <td>外观属性</td>
  </tr>
  <tr>
   <th scope="row"></th>
   <td><a href="/en/SVG/Content_type#FuncIRI" title="https://developer.mozilla.org/en/SVG/Content_type#FuncIRI">&lt;FuncIRI&gt;</a> | <strong title="this is the default value">none</strong> | inherit</td>
  </tr>
  <tr>
   <th scope="row">可变性</th>
   <td>Yes</td>
  </tr>
  <tr>
   <th scope="row">规范文档</th>
   <td><a class="external" href="http://www.w3.org/TR/SVG/masking.html#MaskProperty">SVG 1.1 (2nd Edition)</a></td>
  </tr>
 </tbody>
</table>

<dl>
 <dt><a href="/en/SVG/Content_type#FuncIRI" title="https://developer.mozilla.org/en/SVG/Content_type#FuncIRI">&lt;funcIRI&gt;</a></dt>
 <dd>对同一SVG文档片段内部别的图形对象的一个引用 ,这个图形对象将用作遮罩。这个引用的句法与{{ cssxref("uri","CSS URI") }}的句法相同。</dd>
</dl>

<h2 id="示例">示例</h2>

<h2 id="元素">元素</h2>

<p>下列元素可以使用<code>mask</code>属性:</p>

<ul>
 <li><a href="/en/SVG/Element#Container" title="en/SVG/Element#Container">容器元素</a> »</li>
 <li><a href="/en/SVG/Element#Graphical" title="en/SVG/Element#Graphical">图形元素</a> »</li>
</ul>

<h2 id="相关内容">相关内容</h2>

<ul>
 <li>{{ SVGElement("mask") }}</li>
</ul>