【问题标题】:How to style Tabs TabStrip border bottom如何设置标签 TabStrip 边框底部的样式
【发布时间】:2019-09-16 10:22:55
【问题描述】:

默认情况下,nativescript Tab TabStrip 在活动项目处有一个蓝色边框底部。我该如何改变这个蓝色底部边框的颜色?

我已经按照样式部分中的文档链接尝试了样式标签:

https://docs.nativescript.org/angular/ui/ng-components/tabs

【问题讨论】:

    标签: tabs nativescript


    【解决方案1】:

    您可以为此使用特殊的 nativescript CSS 属性 highlight-color

    这是一个例子:

    Tabs TabStrip {
        background-color: #fff;
        highlight-color: #f00; // Here you can write your color code 
        color: #fff;
        font-size: 14;
        font-weight: bold;
    }
    

    以下是 Playground 应用的示例:https://play.nativescript.org/?template=play-tsc&id=hhPr9s&_ga=2.8323127.464253737.1575620904-1702602123.1572291235

    这里是 Nativescript 团队介绍 Tabs 组件的官方博文,希望对你有所帮助:https://www.nativescript.org/blog/tabs-and-bottomnavigation-nativescripts-two-new-components

    【讨论】:

      【解决方案2】:

      想通了。我不得不更改 App_Resources 的强调色。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2017-01-04
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-08-12
        相关资源
        最近更新 更多