前端开发设置字体类型

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title></title>

        <style type="text/css">
            h1 {
                font-family: "黑体";
            }
            h2 {
                font-family: "宋体", "lucida console";
            }
            h3 {
                font-family: "\5FAE\8F6F\96C5\9ED1"; /* 微软雅黑的Unicode码 */
            }
        </style>

    </head>
    <body>
        <h1>这是标题标签1</h1>
        <h2>这是标题标签2</h2>
        <h3>这是标题标签3</h3>
    </body>
</html>
image
posted @ 2020-10-09 21:42  thomas_blog  阅读(437)  评论(0编辑  收藏  举报