【发布时间】:2021-02-22 07:49:02
【问题描述】:
您好,我正在尝试自定义 p-calendar,但不知道如何更改正在显示的日期的颜色。请帮忙。提前致谢。
这是我的模板:
<div class="p-field p-col-12 p-md-4">
<label for="time">Time</label>
<p-calendar [(ngModel)]="date7" [showTime]="true" [inline]="true" inputId="time"></p-calendar>
</div>
我的 CSS:
::ng-deep .ui-datepicker .ui-datepicker-group {
background-color: whitesmoke;
}
::ng-deep .ui-datepicker .ui-widget-content {
border: 1px solid #888888;
font-weight: normal;
color: #000000;
background-color: red
}
【问题讨论】:
-
您使用哪个版本的 PrimeNG?
-
我使用的是第 10 版。
标签: html css angular primeng primeng-calendar