다른 배경 이미지에 이미지를 배치하고 싶지만 화면의 해상도를 변경할 때 배경 이미지 위에 배치 할 이미지의 위치가 변경됩니다.화면 해상도가 변경 될 때 절대 이미지 위치가 작동하지 않음
#identification {
margin-top: 20px;
position: relative;
}
.identification-image-1 {
position: absolute;
margin-top: 200px;
margin-left: 350px;
}
주 '이미지/식별-new.png'폭 100 %의 배경 이미지입니다 : 나는 아래의 코드를
<div id="identification ">
<div class="identification-image-1">
<a href="form.html">
<img id="image-1" src="images/identification-1.png" alt="" />
</a>
</div>
<div>
<a href="form.html">
<img src="images/identification-new.png" alt="" width="100%" />
</a>
</div>
</div>
CSS 코드를 사용합니다. 위의 코드는 내 문제를 해결하지만 화면 해상도를 변경하면 절대 위치가 작동하지 않습니다.
margin-top/margin-left 대신에'top' /'left' 시도하십시오. – Arantir