使用[style]或[styleClass]
<p-calendar [styleClass]="'custom-height'"></p-calendar>
在你的css使用下面:
.custom-height:{height:300px}
您可以覆盖以下类别的主要日历
.ui-calendar .ui-datepicker {
height : 200px;
}
在css下面添加:
.ui-datepicker td span, .ui-datepicker td a {
padding: 0px;
}