test 1-2 6

<!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <title>Double Page Spread</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="https://cdn.jsdelivr.net/npm/lightbox2@2.11.4/dist/css/lightbox.min.css" rel="stylesheet" /> <style> :root { --a5-width: 420px; --a5-height: 595px; } body { background: #f2f2f2; margin: 0; padding: 40px 10px; display: flex; justify-content: center; align-items: flex-start; font-family: sans-serif; } .album-row { display: flex; position: relative; width: calc(var(--a5-width) * 2); height: var(--a5-height); box-shadow: 0 0 8px rgba(0,0,0,0.2); border: 1px solid #ccc; } .spread-bg { position: absolute; width: 100%; height: 100%; object-fit: cover; z-index: 0; top: 0; left: 0; } .a5-page { width: var(--a5-width); height: var(--a5-height); position: relative; overflow: hidden; z-index: 1; display: flex; justify-content: center; align-items: center; box-sizing: border-box; } .page-left { background: none; clip-path: inset(0 50% 0 0); /* 왼쪽 절반만 표시 */ } .page-right { background: none; clip-path: inset(0 0 0 50%); /* 오른쪽 절반만 표시 */ } .photo-slot { position: relative; width: 80%; height: 80%; border-radius: 8px; overflow: hidden; box-shadow: 0 0 4px rgba(0,0,0,0.2); z-index: 2; } .photo-slot img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; display: block; } /* 모바일에서는 1장씩 보여줌 */ @media (max-width: 899px) { .album-row { flex-direction: column; width: var(--a5-width); height: auto; } .a5-page { width: var(--a5-width); height: var(--a5-height); clip-path: none; } .spread-bg { display: none; } } /* 인쇄 대응 */ @media print { body { background: white; padding: 0; display: block; } .album-row { width: 296mm; height: 210mm; border: none; box-shadow: none; page-break-after: always; } .a5-page { width: 148mm; height: 210mm; clip-path: none; box-shadow: none; } .spread-bg { print-color-adjust: exact; -webkit-print-color-adjust: exact; } } </style> </head> <body> <div class="album-row"> <img class="spread-bg" src="/files/attach/images/2025/04/30/ea837362da02d633b8b0168375e79183.jpg" alt="Spread Background"> <!-- 왼쪽 페이지 --> <div class="a5-page page-left"> <a href="/files/attach/images/2025/04/30/0493a3f881d83c0263211d06af551990.jpg" data-lightbox="album" data-title="Left Photo"> <div class="photo-slot"> <img src="/files/attach/images/2025/04/30/0493a3f881d83c0263211d06af551990.jpg" alt="Left Image"> </div> </a> </div> <!-- 오른쪽 페이지 --> <div class="a5-page page-right"> <a href="/files/attach/images/2025/04/30/aed9d0c3fbcc3bd8a5a1e2070ce3fcaf.jpg" data-lightbox="album" data-title="Right Photo"> <div class="photo-slot"> <img src="/files/attach/images/2025/04/30/aed9d0c3fbcc3bd8a5a1e2070ce3fcaf.jpg" alt="Right Image"> </div> </a> </div> </div> <script src="https://cdn.jsdelivr.net/npm/lightbox2@2.11.4/dist/js/lightbox.min.js"></script> </body> </html>
by eGrida posted May 10, 2025
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄
Extra Form
Double Page Spread

Articles