【问题标题】:Customizing Angular8 date picker arrow (top and bottom arrow)自定义 Angular8 日期选择器箭头(顶部和底部箭头)
【发布时间】:2020-05-29 09:43:47
【问题描述】:

我喜欢使用顶部和底部箭头自定义 Angular 8 日期选择器。默认是左右箭头。如何自定义它。

Angular 8 date picker

【问题讨论】:

    标签: javascript html css angular


    【解决方案1】:

    假设该按钮的选择器是 .myButton。如果您想要特定组件,请使用主机选择器覆盖默认样式,例如

    :host>>>.myButton {
       background-color: white;
    }
    

    或者在你的全局styles.css中指定这个

    .myButton {
          background-color: white !important;
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-05-28
      • 2015-08-20
      • 1970-01-01
      • 2021-11-08
      • 1970-01-01
      • 2013-07-14
      • 1970-01-01
      • 2016-11-29
      相关资源
      最近更新 更多