aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/css/css_fonts/index.html
blob: 940c9fb0d086a3c120173984a12e51a2b2b11683 (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
137
138
139
140
---
title: CSS Fonts
slug: Web/CSS/CSS_Fonts
translation_of: Web/CSS/CSS_Fonts
---
<div>{{CSSRef}}</div>

<p><strong>CSS Fonts</strong> 是一个CSS模块,它定义字体相关的属性和字体资源是如何加载的。它允许定义一个字体的样式,如字体样式、尺寸大小或字体宽度,以及要使用的字形的变体(加粗、斜体等),对于一个字符有几个字形的字体。</p>

<h2 id="参考文献">参考文献</h2>

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

<div class="index">
<ul>
 <li>{{cssxref("font")}}</li>
 <li>{{cssxref("font-family")}}</li>
 <li>{{cssxref("font-feature-settings")}}</li>
 <li>{{cssxref("font-kerning")}}</li>
 <li>{{cssxref("font-language-override")}}</li>
 <li>{{cssxref("font-size")}}</li>
 <li>{{cssxref("font-size-adjust")}}</li>
 <li>{{cssxref("font-stretch")}}</li>
 <li>{{cssxref("font-style")}}</li>
 <li>{{cssxref("font-synthesis")}}</li>
 <li>{{cssxref("font-variant")}}</li>
 <li>{{cssxref("font-variant-alternates")}}</li>
 <li>{{cssxref("font-variant-caps")}}</li>
 <li>{{cssxref("font-variant-east-asian")}}</li>
 <li>{{cssxref("font-variant-ligatures")}}</li>
 <li>{{cssxref("font-variant-numeric")}}</li>
 <li>{{cssxref("font-variant-position")}}</li>
 <li>{{cssxref("font-weight")}}</li>
 <li>{{cssxref("line-height")}}</li>
</ul>
</div>

<h3 id="使用规则">使用规则</h3>

<dl>
 <dt>{{cssxref("@font-face")}}</dt>
 <dd>
 <div class="index">
 <ul>
  <li>{{cssxref("@font-face/font-family", "font-family")}}</li>
  <li>{{cssxref("@font-face/font-feature-settings", "font-feature-settings")}}</li>
  <li>{{cssxref("@font-face/font-style", "font-style")}}</li>
  <li>{{cssxref("@font-face/font-variant", "font-variant")}}</li>
  <li>{{cssxref("@font-face/font-weight", "font-weight")}}</li>
  <li>{{cssxref("@font-face/font-stretch", "font-stretch")}}</li>
  <li>{{cssxref("@font-face/src", "src")}}</li>
  <li>{{cssxref("@font-face/unicode-range", "unicode-range")}}</li>
 </ul>
 </div>
 </dd>
 <dt>{{cssxref("@font-feature-values")}}</dt>
</dl>

<h2 id="Guide">Guide</h2>

<p><em>None.</em></p>

<h2 id="Specifications">Specifications</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName('CSS3 Fonts')}}</td>
   <td>{{Spec2('CSS3 Fonts')}}</td>
   <td> </td>
  </tr>
  <tr>
   <td>{{SpecName('CSS2.1', 'fonts.html#font-shorthand', '')}}</td>
   <td>{{Spec2('CSS2.1')}}</td>
   <td> </td>
  </tr>
  <tr>
   <td>{{SpecName('CSS1', '#font', '')}}</td>
   <td>{{Spec2('CSS1')}}</td>
   <td>Initial definition</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">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>1.0</td>
   <td>1.0 (1.0)</td>
   <td>3.0</td>
   <td>3.5</td>
   <td>1.0 (85)</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 Phone</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>