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

<p>属性<code>scale</code>定义了用在{{SVGElement("feDisplacementMap")}}滤镜上的置换缩放因子。它的总值表达在{{SVGElement("filter")}}元素的属性{{SVGAttr("primitiveUnits")}}确定的坐标系统中。</p>

<p>如果这个属性的值是<strong><span class="attr-value">0</span></strong><span class="attr-value"></span>则它的操作对源图像没有影响。</p>

<p>如果没有指定这个属性,则效果等同于它被指定了<strong>0</strong>值。</p>

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

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="row">类别</th>
   <td><em></em></td>
  </tr>
  <tr>
   <th scope="row"></th>
   <td><a href="/en/SVG/Content_type#Number" title="en/SVG/Content_type#Paint">&lt;number&gt;</a></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#feDisplacementMapScaleAttribute" rel="external">SVG 1.1 (2nd Edition)</a></td>
  </tr>
 </tbody>
</table>

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

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

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

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