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

时间:2018-09-03 12:37:42

标签: angular nativescript angular2-nativescript

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

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

2 个答案:

答案 0 :(得分:6)

hr是否应该作为StackLayout内的一个班级?

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

Reference

答案 1 :(得分:1)

df = (df1.merge(df2, left_on='A', right_on='C', how='outer')
         .assign(E = lambda x: x.B - x.D)
         .fillna('Not found'))
print (df)
           A          B          C          D          E
0        AAA         50        AAA         10         40
1        BBB        100  Not found  Not found  Not found
2        CCC        200        CCC        500       -300
3  Not found  Not found        EEE       2100  Not found

//给出底部边框

<Label class="line" text="About"></Label>

//给出顶部边框

.about-heading{
    font-size: 19;
    padding: 5 18;
    border-color: #3BEC9C;
    border-width: 0 0 2 0;
}