CSS 中 text-transform 属性的使用


text-transform 属性用于将文本变大写或转换为大写或小写字母。

示例

可能的值包括 none、capitalize、uppercase、lowercase。

<html>
   <head>
   </head>
   <body>
      <p style = "text-transform:capitalize;">
         This will be capitalized
      </p>

      <p style = "text-transform:uppercase;">
         This will be in uppercase
      </p>

      <p style = "text-transform:lowercase;">
         This will be in lowercase
      </p>
   </body>
</html>

更新日期: 30-1 月-2020

91 次查看

开启你的 职业生涯

通过完成课程,获得认证

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