我有2个div,我想将其中一个放在另一个div后面,这意味着包装器应将低层div切片并位于其上方。
我尝试使用z-index属性,但没有帮助
redux
.feedback-wrapper {
box-sizing: border-box;
width: 300px;
background-color: #fff;
position: fixed;
z-index: 999;
bottom: 25%;
top: 25%;
left: -310px;
...
.arrow-wrapper {
transition: 0.2s;
position: fixed;
top: 40%;
left: -0.5rem;
// background-color: red;
width: 100px;
height: 100px;
z-index: 1;
i {
&:first-of-type {
position: relative;
font-size: 25rem;
font-weight: bold;
color: rgba(38, 156, 117, 0.6);
}
&:nth-child(2) {
cursor: pointer;
position: absolute;
top: 116px;
left: 55px;
font-size: 2rem;
color: #fff;
font-weight: bold;
}
}
}
}