HTML中字体的设置

HTML中的字体设置是使用

在这里插入图片描述

<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title></title>
	<style type="text/css">
		.a {
			font-family: "microsoft sans serif";
		}
		.b{
			font-family: "microsoft yahei";
		}
		.c{
			font-family: "SimSun";
		}
		.d{
			font-family: "SimHei";
		}
		.e{
			font-family: "\5FAE\8F6F\96C5\9ED1";
		}
	</style>
</head>
<body>
	<h1 class="a">你好啊</h1>
	<h1 class="b">你好啊</h1>
	<h1 class="c">你好啊</h1>
	<h1 class="d">你好啊</h1>
	<h1 class="e">你好啊</h1>
</body>
</html>

最后在页面上显示的
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_36949892/article/details/90613057