最佳答案
我通过在 p-calendar html 元素中使用 appendTo="body"修复了它。
这是 html 元素现在的样子:
<p-calendar appendTo="body" [locale]="dk" placeholder="Inklusion dato" [(ngModel)]="patient.inclusionDate" showButtonBar="true"
readonlyInput="true" [showIcon]="true"></p-calendar>
关于css - PrimeNG日历打开Z索引错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50451378/