在Thinbox中有关闭按钮,我想通过在IFRAME(HTML)中在其上方添加img来禁用它,我尝试这样做,但是图像显示在Thinbox中关闭按钮的后面
Make sure both elements have the same z-index
and that the image
is later in the code so it would be drawn over earlier elements. If that's not an option, you can force it to be drawn over by changing the z-index
.
<img src="image.png" alt="">
<div>Some text</div>
CSS
div, img { position: absolute; } /* Draw them over each other */
div { z-index: 100; }
img { z-index: 101; }
Default is 0
, so setting 1
for the image alone should work.
Note that the img
-tag is earlier in the code in this example.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.