可能的值
值描述
none
默认。定义带有小写字母和大写字母的标准的文本。
capitalize
文本中的每个单词以大写字母开头。
uppercase
定义仅有大写字母。
lowercase
定义无大写字母,仅有小写字母。
inherit
规定应该从父元素继承 text-transform 属性的值。
h1 {text-transform: uppercase}
p.uppercase {text-transform: uppercase}
p.lowercase {text-transform: lowercase}
p.capitalize {text-transform: capitalize}
This Is An H1 Element
This is some text in a paragraph.
This is some text in a paragraph.
This is some text in a paragraph.
查看结果:
This Is An H1 Element
This is some text in a paragraph.
This is some text in a paragraph.
This is some text in a paragraph.
原文:http://www.cnblogs.com/liuyanxia/p/5659278.html