aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/svg/attribute/result/index.html
blob: 87b26e984403402f38e41ad83a8166ab72c12461 (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
---
title: result
slug: Web/SVG/Attribute/result
tags:
  - SVG
  - SVG属性
  - 需要兼容性表
translation_of: Web/SVG/Attribute/result
---
<p>« <a href="/en/SVG/Attribute" title="en/SVG/Attribute">SVG属性参考主页</a></p>

<p>属性<code>result</code>定义了滤镜的分配名。如果提供了它,则经过滤镜处理的结果即图形可以再次滤镜处理,在后继滤镜(即另一个{{ SVGElement("filter") }}元素)上通过一个{{ SVGAttr("in") }}属性引用之前的结果。如果没有提供<code>result</code>值,而且如果下一个滤镜也没有提供{{ SVGAttr("in") }}属性值,则输出只可作为下一个滤镜的隐式输入。</p>

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

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="row">类别</th>
   <td></td>
  </tr>
  <tr>
   <th scope="row"></th>
   <td>&lt;filter-primitive-reference&gt;</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/filters.html#FilterPrimitiveResultAttribute">SVG 1.1 (2nd Edition)</a></td>
  </tr>
 </tbody>
</table>

<p>注意<code>&lt;filter-primitive-reference&gt;</code>不是一个XML ID,换句话说,<code>&lt;filter-primitive-reference&gt;</code>只在给定的{{ SVGElement("filter") }}元素内部有意义,因此只有局部范围。在同一个{{ SVGElement("filter") }}元素内部,同一个<code>&lt;filter-primitive-reference&gt;</code>出现多次也是合法的。如果引用了,<code>&lt;filter-primitive-reference&gt;</code>将使用在给定结果前面、离给定结果最近的滤镜。</p>

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

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

<ul>
 <li><a href="/en/SVG/Element#FilterPrimitive" title="en/SVG/Element#FilterPrimitive">滤镜元素</a> »</li>
</ul>