CSS 中 font-family 属性的使用方法


font-family 属性用于改变字体字样。可能的属性值可以是任何字体字样名称。

<html>
   <head>
   </head>
   <body>
      <p style = "font-family:georgia,garamond,serif;">
         This text is rendered in either georgia, garamond, or the default serif font
         depending on which font you have at your system.
      </p>
   </body>
</html>

更新日期:2020 年 1 月 30 日

125 次浏览

开启你的 职业生涯

通过完成此课程获得认证

开始学习
广告
© . All rights reserved.