如何更改primeng日历高度?

问题描述 投票:0回答:2

如何更改primeng日历的高度而不是输入字段。

enter image description here

更新1:

应用以下样式后,日历显示如下

.ui-calendar .ui-datepicker {
height : 200px;
}

enter image description here

angular primeng
2个回答
0
投票

使用[style]或[styleClass]

<p-calendar [styleClass]="'custom-height'"></p-calendar>

在你的css使用下面:

.custom-height:{height:300px}

0
投票

您可以覆盖以下类别的主要日历

.ui-calendar .ui-datepicker {
height : 200px;
}

在css下面添加:

.ui-datepicker td span, .ui-datepicker td a {
    padding: 0px;
}
© www.soinside.com 2019 - 2024. All rights reserved.