【发布时间】:2017-06-12 19:54:56
【问题描述】:
我正在尝试创建一个使用边框半径来包裹其子项的布局,但我无法在包含边框半径的父项中隐藏子项内容。
在网络上可以使用overflow: hidden 完成,但是在 NativeScript 上我无法做到,这是我的css:
.card {
border-radius: 10;
border-color: blue;
border-width: 1;
margin-bottom: 16;
overflow: hidden;
}
<StackLayout *ngFor="let item of petLista" class="card">
<StackLayout class="card_image"></StackLayout>
<StackLayout class="card_info">
// ... more content here
</StackLayout>
</StackLayout>
但是在运行应用程序时,结果是这样的:
我需要做什么才能将内容包裹在父级中以跟随半径?
【问题讨论】:
-
您找到解决方案了吗?
标签: nativescript angular2-nativescript