实例代码:
<!doctype html>
<head>
<meta charset="utf-8">
<style type="text/css">
p{font-family:Times,TimesNR,'New Century Schoolbook',Georgia,'New York',serif;}
h1{font-family:"宋体";}
</style>
</head>
<html>
<body>
<h1>设置多种字体实例</h1>
<p>This is some font</p>
<p>This is some font</p>
</body>
</html>
运行效果:
从实例效果来看,在浏览器浏览中感觉设置字体没有什么变化。
评论