【发布时间】:2018-03-14 00:33:24
【问题描述】:
我需要在 GridView 中旋转标题。我搜索了网站并找到了一些信息。但是我不知道如何正确显示它。我可以旋转标题文本,但它显示在项目行上。有人能告诉我如何解决吗?
CSS 代码在这里:
th.test, .test th {
font-size: 11px;
font-weight: bold;
background-color: greenyellow;
padding: 5px;
text-transform: none;
text-align: left;
transform:
translate(25px, 51px)
rotate(315deg);
width: 30px;
}
【问题讨论】:
-
你可以试试写模式developer.mozilla.org/en-US/docs/Web/CSS/writing-mode例子来测试和玩codepen.io/gc-nomade/pen/EKQKBe如果你喜欢rotate(),那么有技巧:codepen.io/gc-nomade/pen/Cqkigvariantecodepen.io/gcyrillus/details/EvCHi