css font-family.html

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>css font-family</title>
    <style>
        / * Reference: https: //www.w3school.com.cn/cssref/pr_font_font-family.asp*/
        body {
            font-size: 16px;
        }

        p.serif {
            font-family: Serif, Georgia, "Times New Roman";
        }

        p.sansserif {
            font-family: 'Microsoft Yahei',Helvetica,'Courier New',monospace,Sans-serif, Verdana, Arial;
        }
    </style>
</head>

<body>
<h1>CSS font-family</h1>
<p class="serif">This is a paragraph, shown in the Times New Roman font.</p>
<p class="sansserif">South Station Technology Business District / Introduction</p>

</body>
</html>


He published 198 original articles · won praise 58 · views 80000 +

Guess you like

Origin blog.csdn.net/weixin_42193179/article/details/103938913