ngb模态出现在背景下

时间:2018-11-09 14:51:27

标签: angular ng-bootstrap

我在几个地方都看到过这个问题,但是他们似乎都在说:“不要将模态或背景放置在已设置位置属性的父级中”,但是我的模态和背景都在kind: StatefulSet apiVersion: apps/v1 metadata: name: orientdbservice spec: serviceName: orientdbservice replicas: 3 selector: matchLabels: service: orientdb type: container-deployment template: metadata: labels: service: orientdb type: container-deployment spec: containers: - name: orientdbservice image: orientdb:3.0.10 command: ["/bin/sh","-c", " cp /configs/* /orientdb/config/ ; cp /orientdb/bin/data/plugin/* /orientdb/lib ; /orientdb/bin/server.sh -Ddistributed=true" ] env: - name: ORIENTDB_ROOT_PASSWORD valueFrom: secretKeyRef: name: orientdb-password key: password.txt - name: POD_NAME valueFrom: fieldRef: fieldPath: metadata.name ports: - containerPort: 2424 name: port-binary - containerPort: 2480 name: port-http - containerPort: 5701 name: hazelcast volumeMounts: - name: config mountPath: /orientdb/config - name: orientdb-config-plugin mountPath: /configs/pom.xml subPath: pom.xml - name: orientdb-config-build mountPath: /configs/build.sbt subPath: build.sbt - name: orientdb-config-hazelcast mountPath: /configs/hazelcast.xml subPath: hazelcast.xml - name: orientdb-config-server mountPath: /configs/orientdb-server-config.xml subPath: orientdb-server-config.xml - name: orientdb-config-backups mountPath: /configs/backups.json subPath: backups.json - name: orientdb-config-events mountPath: /configs/events.json subPath: events.json - name: orientdb-config-distributed mountPath: /configs/default-distributed-db-config.json subPath: default-distributed-db-config.json - name: orientdb-config-client-logs mountPath: /configs/orientdb-client-log.properties subPath: orientdb-client-log.properties - name: orientdb-config-server-logs mountPath: /configs/orientdb-server-log.properties subPath: orientdb-server-log.properties - name: orientdb-databases mountPath: /orientdb/databases - name: orientdb-backup mountPath: /orientdb/backup - name: orientdb-data mountPath: /orientdb/bin/data volumes: - name: config emptyDir: {} - name: orientdb-config-plugin configMap: name: orientdb-configmap-plugin - name: orientdb-config-build configMap: name: orientdb-configmap-build - name: orientdb-config-hazelcast configMap: name: orientdb-configmap-hazelcast - name: orientdb-config-server configMap: name: orientdb-configmap-server - name: orientdb-config-backups configMap: name: orientdb-configmap-backups - name: orientdb-config-events configMap: name: orientdb-configmap-events - name: orientdb-config-distributed configMap: name: orientdb-configmap-distributed - name: orientdb-config-client-logs configMap: name: orientdb-configmap-client-logs - name: orientdb-config-server-logs configMap: name: orientdb-configmap-server-logs - name: orientdb-data hostPath: path: /import_data type: Directory volumeClaimTemplates: - metadata: name: orientdb-databases labels: service: orientdb type: pv-claim spec: accessModes: [ "ReadWriteOnce" ] resources: requests: storage: 40Gi - metadata: name: orientdb-backup labels: service: orientdb type: pv-claim spec: accessModes: [ "ReadWriteOnce" ] resources: requests: storage: 20Gi 元素,没有其他父元素,这是元素堆栈的屏幕截图:

enter image description here

当我观察到模态背景时,它有一个body,而z-index: 1040有一个ngb-modal-window。当我更改这些数字以使窗口的z-index: 50高于背景的值时,问题已解决,但是为什么要这样做呢?

我也浏览了我们的应用程序css,但没有覆盖任何css规则。是版本问题吗? z-indexpackage.json

0 个答案:

没有答案