<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><title>大小写转换</title><!--text-transform 大小写转换--><!--none 无转换(默认值)--><!--uppercase 转换为大写--><!--lowercase 转换为小写--><!--capitalize 每个英文单词首字母转换为大写--><style>#p1{text-transform: uppercase;}#p2{text-transform: lowercase;}#p3{text-transform: capitalize;}</style></head><body><pid="p1">rome wasn't built in a day.</p><pid="p2">rome wasn't built in a day.</p><pid="p3">rome wasn't built in a day.</p></body></html>
<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><title>字母间距</title><!--letter-spacing 字母间距--><style>#p1{letter-spacing: 0px;}#p2{letter-spacing: 3px;}#p3{letter-spacing: 5px;}</style></head><body><pid="p1">Rome was't built in a day.罗马不是一天建成的。</p><hr/><pid="p2">Rome was't built in a day.罗马不是一天建成的。</p><hr/><pid="p3">Rome was't built in a day.罗马不是一天建成的。</p></body></html>
词间距
<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><title>词间距</title><!--word-spacing 词间距--><style>#p1{word-spacing: 0px;}#p2{word-spacing: 3px;}#p3{word-spacing: 5px;}</style></head><body><pid="p1">Rome was't built in a day.罗马不是一天建成的。</p><hr/><pid="p2">Rome was't built in a day.罗马不是一天建成的。</p><hr/><pid="p3">Rome was't built in a day.罗马不是一天建成的。</p></body></html>
练习
<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><title>Practice</title><style>p{text-indent: 32px;}#p2{text-transform: uppercase;}span{font-weight: bold;text-decoration: underline;}</style></head><body><p>很多人都喜欢用战术上的勤奋来掩盖战略上的懒惰,事实上这种“<span>低水平的勤奋</span>”远远比懒惰可怕。</p><pid="p2">Remember: no pain, no gain!</p></body></html>