CSS中text-transform屬性實現字串轉換的代碼

來源:互聯網
上載者:User
本篇文章給大家帶來的內容是關於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>
相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.