javascript - 在 PrimeNG 中扩展多个面板时如何修复损坏?

标签 javascript css angular typescript primeng

我正在处理多个面板,我添加了功能来展开/折叠它们。我的问题是,当我展开它们时,我在所有面板上看到了一个丑陋的损坏文本。有谁知道如何解决这个问题?这是我的工作代码: PLUNKER

 <p-panel header="Panel 1" [toggleable]="true" [collapsed]="collapsed" [style]="{'margin-bottom':'20px'}">

 The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding.
His beloved son Michael has just come home from the war, but does not intend to become part of his father's business.
Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family,
kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.

</p-panel> 

最佳答案

嘿,你不太熟悉 Angular ,也不熟悉你在那里使用的库。但是你可以通过设置位置属性来避免与某些背景重叠的部分。

.ui-panel {
  position: relative;
}
.ui-panel .ui-panel-content.ui-widget-content { 
     background: white;
}

关于javascript - 在 PrimeNG 中扩展多个面板时如何修复损坏?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48756827/

相关文章:

javascript - 端点位置未在 jsPlumb 调整大小中更新

html - 使跨度继承兄弟宽度

html - 改变按钮的大小

javascript - 计算 div 的哪一部分不在屏幕上

angular - 如何配置环回来服务 angular4 应用程序?

javascript - 具有最小值和最大值的 jQuery 简单 slider

javascript - 模态表中的按钮未触发

javascript - 遍历 JSON 数组 - 正确格式化

javascript - HTML Range 元素值未使用 Angular6 函数更新

angular - 如果满足特定条件,RXJS 停止 Observable 链的传播