1、定义字体类型
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>字体样式</title>
<style type="text/css">
body {/* 页面基本属性 */
font-family:"Times New Roman",Georgia,Serif; /* 字体类型 */
}
p {/* 段落样式 */
font:50px "隶书"; /* 50像素大小的隶书字体 */
}
</style>
</head>
<body>
<p>定义字体类型为"Times New Roman",Georgia,Serif,字体大小为50px</p>
</body>
</html>