【发布时间】:2022-01-01 16:10:21
【问题描述】:
【问题讨论】:
【问题讨论】:
p {
writing-mode: vertical-rl;
text-orientation: mixed;
}
<p>I am some cool text</p>
writing-mode: vertical-rl; text-orientation: mixed;
【讨论】:
您需要transform: rotate 属性。在这里您可以找到更多信息:[在此处输入链接描述][1]
https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/rotate()
【讨论】:
你可以用文本方向来实现它:
.txt {
writing-mode: vertical-rl;
text-orientation: mixed;
}
<div class="txt">some text</div>
来源:https://developer.mozilla.org/en-US/docs/Web/CSS/text-orientation
【讨论】:
只需使用变换和旋转
.wrapper {
margin: 100px 80px;
transform: rotate(90deg);
transform-origin: top center;
}
.number {
display: inline-block;
transform: rotate(-90deg);
}
<div class="wrapper">
<div class="item">
<span class="number">1</span>
<span class="description">this is one</span>
</div>
<div class="item">
<span class="number">2</span>
<span class="description">this is two</span>
</div>
<div class="item">
<span class="number">3</span>
<span class="description">this is three</span>
</div>
</div>
【讨论】: