如何编辑原始的引导角日期选择器样式表,根据我的愿望,这里是链接https://ng-bootstrap.github.io/#/components/datepicker/examples#basic,我需要在我的文件中编辑这个日期选择器的颜色。
发布于 2018-05-31 06:52:46
如果使用的是角cli,则根文件夹中有一个全局(src)。在这里,您可以添加数据报警器的自定义样式,检查元素以找到要覆盖样式的类。
将其添加到style.css/scss文件中
.ngb-dp-day .btn-light {
background: green !important;
}
.ngb-dp-day .bg-primary {
background: red !important;
}发布于 2018-05-31 06:58:09
只需使用F12 (检查元素)并查看它们的样式:

添加到css中的!important:(使用来防止卵巢)
ngb-datepicker{
background-color: red!important;
}

见结果:

https://stackoverflow.com/questions/50618254
复制相似问题