Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用以下方法来做到这一点:
.VerticalText { transform: rotate(-90deg); }
但它正在旋转文本和单元格。如何在单元格内垂直旋转文本?
您应该在文本之外创建一个 div,然后以另一种方式旋转。
因此,如果
并且外部的 div 被称为例如 .VerticalTextWrapper
.VerticalTextWrapper { transform: rotate(90deg); }
希望有帮助!