aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/svgcircleelement/index.html
blob: a956d4ec0393988885639cac9ed6ea2de5431a7c (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
---
title: SVGCircleElement
slug: Web/API/SVGCircleElement
tags:
  - API
  - SVG
  - SVG DOM
  - WebAPI
  - 参考
  - 需要兼容性表
  - 需要示例
translation_of: Web/API/SVGCircleElement
---
<div>{{APIRef("SVG")}}</div>

<h2 id="SVG_Circle_DOM_接口">SVG Circle DOM 接口</h2>

<p><code>SVGCircleElement</code> 接口提供了对{{ SVGElement("circle") }}元素的属性的访问,而且还提供了操作该元素的方法。</p>

<h3 id="接口概览">接口概览</h3>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="row">又作用于</th>
   <td>{{ domxref("SVGElement") }}{{ domxref("SVGTests") }}{{ domxref("SVGLangSpace") }}{{ domxref("SVGExternalResourcesRequired") }}{{ domxref("SVGStylable") }}{{ domxref("SVGTransformable") }}</td>
  </tr>
  <tr>
   <th scope="row">方法</th>
   <td><em></em></td>
  </tr>
  <tr>
   <th scope="row">属性</th>
   <td>
    <ul>
     <li>只读 {{ domxref("SVGAnimatedLength") }} <code>cx</code></li>
     <li>只读 {{ domxref("SVGAnimatedLength") }} <code>cy</code></li>
     <li>只读 {{ domxref("SVGAnimatedLength") }} <code>r</code></li>
    </ul>
   </td>
  </tr>
  <tr>
   <th scope="row">规范文档</th>
   <td><a class="external" href="http://www.w3.org/TR/SVG11/shapes.html#InterfaceSVGCircleElement">SVG 1.1 (2nd Edition)</a></td>
  </tr>
 </tbody>
</table>

<h2 id="属性">属性</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th>名称</th>
   <th>类型</th>
   <th>描述</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td><code>cx</code></td>
   <td>{{ domxref("SVGAnimatedLength") }}</td>
   <td>对应于给定{{ SVGElement("circle") }}元素的{{ SVGAttr("cx") }}属性</td>
  </tr>
  <tr>
   <td><code>cy</code></td>
   <td>{{ domxref("SVGAnimatedLength") }}</td>
   <td>对应于给定{{ SVGElement("circle") }}元素的{{ SVGAttr("cy") }}属性</td>
  </tr>
  <tr>
   <td><code>r</code></td>
   <td>{{ domxref("SVGAnimatedLength") }}</td>
   <td>对应于给定{{ SVGElement("circle") }}元素的{{ SVGAttr("r") }}属性</td>
  </tr>
 </tbody>
</table>

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

<p><font face="Open Sans, Arial, sans-serif"></font><code>SVGCircleElement</code>接口没有提供任何专有方法。</p>

<h2 id="Browser_compatibility" name="Browser_compatibility">浏览器兼容性</h2>

<p>{{ CompatibilityTable() }}</p>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari (WebKit)</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{ CompatVersionUnknown() }}</td>
   <td>{{ CompatVersionUnknown() }}</td>
   <td>9.0</td>
   <td>{{ CompatVersionUnknown() }}</td>
   <td>{{ CompatVersionUnknown() }}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Android</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>IE Mobile</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{ CompatNo() }}</td>
   <td>{{ CompatVersionUnknown() }}</td>
   <td>{{ CompatUnknown() }}</td>
   <td>{{ CompatVersionUnknown() }}</td>
   <td>{{ CompatVersionUnknown() }}</td>
  </tr>
 </tbody>
</table>
</div>

<h2 id="参见">参见</h2>

<ul>
 <li>{{ SVGElement("circle") }} SVG Element</li>
</ul>