Stellenbeschreibung
이미지 링크 .image-container { position: relative; display: inline-block; width: 100%; } .link-box { position: absolute; top: 70%; /* 모바일 화면에서의 위치 조정 */ left: 50%; /* 모바일 화면에서의 위치 조정 */ transform: translate(-50%, -50%); width: 40%; /* 모바일 화면에서의 너비 조정 */ height: auto; /* 자동 높이 설정 */ padding-top: 10%; /* 네모칸의 비율 유지 */ cursor: pointer; background-color: rgba(255, 165, 0, 0); /* 완전히 투명하게 설정 */ } img { width: 100%; height: auto; } @media (min-width: 768px) { .link-box { top: 708px; /* 주황색 네모칸의 위쪽 y좌표 */ left: 580px; /* 주황색 네모칸의 왼쪽 x좌표 */ width: 450px; /* 오른쪽 x좌표 - 왼쪽 x좌표 */ height: 79px; /* 아래쪽 y좌표 - 위쪽 y좌표 */ } } 이미지 링크 .image-container { position: relative; display: inline-block; width: 100%; } .link-box { position: absolute; top: 70%; /* 모바일 화면에서의 위치 조정 */ left: 50%; /* 모바일 화면에서의 위치 조정 */ transform: translate(-50%, -50%); width: 40%; /* 모바일 화면에서의 너비 조정 */ height: auto; /* 자동 높이 설정 */ padding-top: 10%; /* 네모칸의 비율 유지 */ cursor: pointer; background-color: rgba(255, 165, 0, 0); /* 완전히 투명하게 설정 */ } img { width: 100%; height: auto; } @media (min-width: 768px) { .link-box { top: 708px; /* 주황색 네모칸의 위쪽 y좌표 */ left: 580px; /* 주황색 네모칸의 왼쪽 x좌표 */ width: 450px; /* 오른쪽 x좌표 - 왼쪽 x좌표 */ height: 79px; /* 아래쪽 y좌표 - 위쪽 y좌표 */ } }
Bewertung hinterlassen