描述
none 默认。定义带有小写字母和大写字母的标准的文本。
capitalize 文本中的每个单词以大写字母开头。
uppercase 定义仅有大写字母。
lowercase 定义无大写字母,仅有小写字母。
inherit 规定应该从父元素继承 text-transform 属性的值。

 

 

 

 

 

 

        p.uppercase {
            text-transform: uppercase
        }

        p.lowercase {
            text-transform: lowercase
        }

        p.capitalize {
            text-transform: capitalize
        }


    <p class="uppercase">This is some text in a paragraph.</p>
    <p class="lowercase">This is some text in a paragraph.</p>
    <p class="capitalize">This is some text in a paragraph.</p>

  

结果如下:

  CSS text-transform 属性 控制控制文本的大小写

 

相关文章:

  • 2021-11-23
  • 2022-01-17
  • 2022-12-23
  • 2022-12-23
  • 2021-04-26
  • 2022-12-23
  • 2020-07-12
猜你喜欢
  • 2022-12-23
  • 2022-02-12
  • 2021-12-24
  • 2022-12-23
  • 2022-12-23
  • 2021-05-25
相关资源
相似解决方案