我有一个无法解决的问题。
我有两个 html 元素,我不想像 pictrue 那样彼此重叠。
我想要做的是将它们彼此分开,以便用户可以看到它们
横幅css代码:
.banner {
width: 100%;
height: auto;
position: relative;
z-index: auto;
}
产品css代码:
.product-grid {
text-align: center;
padding: 0 0 72px;
border: 1px solid rgba(0, 0, 0, .1);
overflow: hidden;
position: relative;
z-index: 1;
box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
}
我尝试了一切都行不通。
答案 0 :(得分:0)
尝试改变 产品网格位置到绝对