font.html
<head>
<title>font-family</title>
<link rel="stylesheet" href="style_font.css" type="text/css" />
</head>
<body>
<p>Hello World</p>
</body>
style_font.css
p {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: x-large;
font-style: italic;
font-weight: bold;
}
等同于
p {
font: italic bold x-large Georgia, "Times New Roman", Times, serif;
}
p {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: x-large;
font-style: italic;
font-weight: bold;
font-variant: small-caps;
}