您好,欢迎访问一九零五行业门户网

CSS中text-transform属性实现字符串转换的代码

本篇文章给大家带来的内容是关于css中text-transform属性实现字符串转换的代码,有一定的参考价值,有需要的朋友可以参考一下,希望对你有所帮助。
<!doctype html><html><head> <meta charset="utf-8"> <title>字符转换</title> <style> p.none { text-transform: none; <!-- 正常 --> } p.uppercase { text-transform: uppercase; <!-- 转大写 --> } p.lowercase { text-transform: lowercase; <!-- 转小写 --> } p.capitalize { text-transform: capitalize; <!-- 只对首字母大写 --> } </style> </head> <body> <p class="none">this is a some text.this is a some text.</p> <p class="uppercase">this is a some text.</p> <p class="lowercase">this is a some text.</p> <p class="capitalize">this is a some text.</p> </body> </html>
相关文章推荐:
 css中table表格的两种使用方法(实例)
多列布局的概念是什么?css多列布局的应用(实例代码)
以上就是css中text-transform属性实现字符串转换的代码的详细内容。
其它类似信息

推荐信息