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

  <StackLayout>
     hr>
     <Label horizontalAlignment="left" textWrap="true" text="Description" class="description-text"></Label>
     </StackLayout>

最佳答案

hr不应该作为StackLayout内的一个类吗?

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

关于angular - 如何在nativescript- Angular html文件中添加水平线,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/52149950/

10-12 04:27
查看更多