我需要将父级以下的子级设置为相对元素之上的博,可以这样做吗?
<div class="parent fixed">
<div class="child absolute">
</div>
<div class="next-element relative">
现在的CSS:
.parent {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
.child {
position: absolute;
}
.next-element {
z-index: 1;
position: relative;
}
可能吗 ?