CSS 中的字体大小属性的用法


font-size 属性用于增大或减小字体的尺寸。font-size 属性用于控制字号。可能的值包括:特小、小、中、大、特大、更大、更大,像素或 %。

<html>
   <head>
   </head>
   <body>
      <p style = "font-size:15px;">This font size is 15 pixels</p>
      <p style = "font-size:small;">This font size is small</p>
      <p style = "font-size:large;">This font size is large</p>
   </body>
</html>

更新于: 2020 年 1 月 30 日

132 次浏览

开启你的 职业生涯

完成课程,获得认证

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