2
.holderDiv{
\t position: relative;
}
.shadowSimulation{
\t position: absolute;
\t background-color: black;
\t height: 60%;
\t width: 611px;
\t bottom: -10px;
\t left: -10px;
}
<!DOCTYPE html>
<html>
<head>
\t <title></title>
</head>
<body>
\t <div class="holderDiv">
\t \t <img class="confidentalMainImage" src="http://i.imgur.com/SoHn5gF.jpg">
\t \t <div class="shadowSimulation"></div>
\t </div>
</body>
</html>
我重视的是什么,我需要得到的图像。 在代码示例中,我尝试了z-index
,但仍然没有结果。 我需要将黑色部分恢复到图像。而已。