【发布时间】:2018-11-12 14:13:19
【问题描述】:
我需要这样的东西:
但这是我目前拥有的:
.rotate {
transform: rotate(-90deg);
font-size: 16px;
color: #FFFFFF;
}
这是我的代码:
<StackLayout backgroundColor="#3C414B" width="12%" height="100%" horizontalAlignment="center" verticalAlignment="center" (tap)="openDrawer('Right')">
<StackLayout class="rotate" orientation="horizontal">
<Label class="fa" style="margin-right: 10px" text=""></Label>
<Label width="100%" class="" text="New Category" textwrap="false"></Label>
</StackLayout>
</StackLayout>
【问题讨论】:
-
请记住,旋转是在调整大小后应用的。您的
width现在是垂直的,而您的height是水平的。如果更改标签的背景颜色,这将变得更加明显。
标签: nativescript nativescript-telerik-ui