在 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>

更新于: 2020-01-30

91 次浏览

开启你的职业生涯

通过完成课程获取认证

开始吧
各种广告
© . All rights reserved.