首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在nativescript-angular html文件中添加水平线

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

Stack Overflow用户
提问于 2018-09-03 20:37:42
回答 2查看 5.9K关注 0票数 5

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

代码语言:javascript
复制
  <StackLayout>
     hr>
     <Label horizontalAlignment="left" textWrap="true" text="Description" class="description-text"></Label>
     </StackLayout>
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2018-09-03 20:43:47

hr不应该作为StackLayout中一个类吗

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

Reference

票数 11
EN

Stack Overflow用户

发布于 2020-01-24 17:35:12

代码语言:javascript
复制
<Label class="line" text="About"></Label>

//给出下边框

代码语言:javascript
复制
.about-heading{
    font-size: 19;
    padding: 5 18;
    border-color: #3BEC9C;
    border-width: 0 0 2 0;
}

//要给出上边框

代码语言:javascript
复制
.about-heading{
    font-size: 19;
    padding: 5 18;
    border-color: #3BEC9C;
    border-width: 2 0 0 0;
}
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52149950

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档