如何在nativescript-angular html文件中添加水平线

问题描述 投票:0回答:1

我在nativescript-angular中的组件html文件中尝试了“hr”标记。但它没有在模拟器中显示水平线。 (使用ios模拟器测试)

  <StackLayout>
     hr>
     <Label horizontalAlignment="left" textWrap="true" text="Description" class="description-text"></Label>
     </StackLayout>
angular nativescript angular2-nativescript
1个回答
7
投票

hr不应该像StackLayout一样上课吗?

<StackLayout class="hr-light">...

Reference

© www.soinside.com 2019 - 2024. All rights reserved.