css如何使文字方向转90度

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .box {
            width: 20px;
            height: 30px;
            transform: rotate(90deg);
            -ms-transform: rotate(90deg);
            /* Internet Explorer 9*/
            -moz-transform: rotate(90deg);
            /* Firefox */
            -webkit-transform: rotate(90deg);
            /* Safari 和 Chrome */
            -o-transform: rotate(90deg);
            /* Opera */
        }
    </style>
</head>

<body>
    <p class="box">123</p>
</body>

</html>

效果:

<img alt=\"CSS如何使文字方向转90度\” alt=\”\” height=\”273\” src=\”https://www.freexyz.cn/d/file/20210521/c3f6a67f1b11d572938c8a4f7dfd7de6.png\” width=\”996\” />

原效果:

4a76a1bac5cef739bfb004496ad26bca

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容