【问题标题】:the second pop up run behind the first ( ng prime )第二个弹出窗口落后于第一个(ng prime)
【发布时间】:2021-05-28 00:28:17
【问题描述】:

我有一个 ng prime modal 我在其中显示我的数据,所以当我想通过单击按钮来删除我的一个数据以显示第二个弹出窗口时,第二个弹出窗口出现在第一个弹出窗口的后面就像照片中的例子: ps enter image description here

HTML 代码

    <table>
      <tr>

                    <td>
                      <p-button
                        (onClick)="confirm($event)"
                        icon="pi pi-trash"
                        label="Clear"
                      ></p-button>
                      <p-confirmPopup></p-confirmPopup>
                    </td>
                  </tr>
                </table>         

【问题讨论】:

  • 您需要更新您的 CSS,以便第二个叠加层显示在第一个叠加层之上。

标签: angular primeng


【解决方案1】:

在 p-confirmPopup 组件的 css 中,您应该将 z-index 设置为大于第一个组件。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-06-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-12-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多