aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/svg/attribute/accent-height/index.html
blob: ba39552047eec1062a19980e74639563d9691443 (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
---
title: accent-height
slug: Web/SVG/Attribute/accent-height
translation_of: Web/SVG/Attribute/accent-height
---
<p>« 回到SVG属性指南首页</p>

<p>此属性定义从原点到重点字符顶部的距离,通过字体坐标系内的距离测量。</p>

<p>若未定义该属性,那么该属性就会被设置为{{ SVGAttr("ascent") }}</p>

<h2 id="Usage_context">Usage context</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="row">Categories</th>
   <td>None</td>
  </tr>
  <tr>
   <th scope="row">Value</th>
   <td><a href="/en/SVG/Content_type#Length" title="https://developer.mozilla.org/en/SVG/Content_type#Number">&lt;number&gt;</a></td>
  </tr>
  <tr>
   <th scope="row">Animatable</th>
   <td>No</td>
  </tr>
  <tr>
   <th scope="row">Normative document</th>
   <td><a class="external" href="http://www.w3.org/TR/SVG/fonts.html#FontFaceElementAccentHeightAttribute" title="http://www.w3.org/TR/SVG/fonts.html#FontFaceElementAccentHeightAttribute">SVG 1.1 (2nd Edition)</a></td>
  </tr>
 </tbody>
</table>

<p>{{ page("/en-US/docs/SVG/Content_type","Number") }}</p>

<h2 id="Elements">Elements</h2>

<p>The following elements can use the <code>accent-height</code> attribute</p>

<ul>
 <li>{{ SVGElement("font-face") }}</li>
</ul>