字符转换属性text-tranform改变大小写
生活随笔
收集整理的這篇文章主要介紹了
字符转换属性text-tranform改变大小写
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
text-transform 屬性處理文本的大小寫。這個屬性有 4 個值:
none
uppercase
lowercase
capitalize
none
uppercase
lowercase
capitalize
默認值 none 對文本不做任何改動,將使用源文檔中的原有大小寫。uppercase 和 lowercase 將文本轉換為全大寫和全小寫字符。最后,capitalize 只對每個單詞的首字母大寫。
<span style="font-size:24px;"><html> <head><style type="text/css">h1 {text-transform: uppercase}p.uppercase {text-transform: uppercase}<!--類選擇器-->p.lowercase {text-transform: lowercase}p.capitalize {text-transform: capitalize}</style> </head> <body><h1>I am a student</h1><p class="uppercase">I am a student.</p><p class="lowercase">I am a student</p><p class="capitalize">I am a student.</p> </body> </html></span>總結
以上是生活随笔為你收集整理的字符转换属性text-tranform改变大小写的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: struts.xml配置文件(一)
- 下一篇: 无序和有序列表的list-style-t