A Pen by JowayYoung on CodePen.
Created
November 3, 2019 12:10
-
-
Save mqxu/4773d89a4b6f9f4655c6fe831047411f to your computer and use it in GitHub Desktop.
【iCSS:布局】使用writing-mode排版竖文
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="bruce flex-ct-x"> | |
<div class="vertical-text"> | |
<h3>情</h3> | |
<p>我见犹怜,<br>爱不释手。<br>雅俗共赏,<br>君子好逑。</p> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.vertical-text { | |
writing-mode: vertical-rl; | |
h3 { | |
padding-left: 20px; | |
font-weight: bold; | |
font-size: 18px; | |
color: #f66; | |
} | |
p { | |
line-height: 30px; | |
color: #66f; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="https://yangzw.vip/static/css/reset.css" rel="stylesheet" /> | |
<link href="https://yangzw.vip/static/css/main.css" rel="stylesheet" /> | |
<link href="https://yangzw.vip/static/css/theme.scss" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment