gpt4 book ai didi

css - 如何让 p 元素的背景覆盖图像(即问题)

转载 作者:太空宇宙 更新时间:2023-11-04 05:19:22 24 4
gpt4 key购买 nike

我更改了 p 元素的 z-index,但它不会覆盖我试图覆盖的图像部分 - 我认为这是一个 ie 问题,因为它适用于 firefox 和 chrome。

p 元素的 css

#slidearea .scrlCntr p{
background: none repeat scroll 0 0 #000000;
margin-top: -20px;
opacity: 0.9;
padding:0;
z-index:999;
}

最佳答案

我想,它需要 position: "absolute, relative ..."

   #slidearea .scrlCntr p{
background: none repeat scroll 0 0 #000000;
margin-top: -20px;
opacity: 0.9;
padding:0;
z-index:999;
position:relative;
}

关于css - 如何让 p 元素的背景覆盖图像(即问题),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7035425/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com