实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<style>
5
.divVerdana {font-family: verdana;}
6
.divTimes {font-family: 'times new roman';}
7
8
#div1 {font-size-adjust:0.58;}
9
#div2 {font-size-adjust:0.58;}
10
</style>
11
</head>
12
<body>
13
14
<p><b>Note:</b> Only Firefox supports the font-size-adjust property.</p>
15
16
<p>Two divs using the same font-size-adjust property:</p>
17
<div id="div1" class="divVerdana">
18
You control the font size better with the font-size-adjust property.
19
</div>
20
21
<div id="div2" class="divTimes">
22
You control the font size better with the font-size-adjust property.
23
</div>
24
25
<p>The same two divs without the font-size-adjust property:</p>
26
<div class="divVerdana">
27
You control the font size better with the font-size-adjust property.
28
</div>
29
30
<div class="divTimes">
31
You control the font size better with the font-size-adjust property.
32
</div>
33
34
</body>
35
</html>
36