首页 > 解决方案 > 不能在另一个图像上重叠多个图像?

问题描述

我想让我的页面上的三个图像重叠在另一个上,然后shadow-box在重叠的图像上制作。第一个图像(.hem)与第二个图像(.sol)重叠,但我无法让(.sol)重叠(.vatten)。这是我的CSS。

    #projekt {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100vh;
    }
    .hem {
    width: 28%;
    position: relative;
    margin-left:  -65px;
    }
    .sol {
    width: 23%;
    margin-left: -35px;
    margin-bottom: 40px;
    }
    .vatten {
    width: 23%;
    margin-left: -65px;
    margin-bottom: 75px;
    }

(#projekt) 只是我下课的 div。

继承人的HTML:

标签: css

解决方案


推荐阅读