
Document
Document
hello
Document
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
我觉得这个是没有办法的,z-index只适用于同一个window,每个iframe都是一个独立的window
换个方法吧……在父元素页面写模态框,然后在子界面调用
为什么要用iframe。。。
不过我有个思路,就是第一个的a.html的容器的z-index在最外层的遮罩之上,然后a.html里面设置覆盖的遮罩,注意和外边的遮罩透明度和颜色一致,然后b.html的容器的z-index更大就好了