<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="https://code.jquery.com/jquery-3.7.1.js"></script>
<style>
body{
margin: 0;
}
#wrap{
height: 100vh;
}
main{
display: flex;
height: calc(100% - 120px);
}
header{
width: 200px;
background-color: #ccc;
}
section{
width: 400px;
background-color: #aaa;
}
#contents{
width: calc(100% - 600px);
}
#contents > .slider-wrap{
width: 100%;
height: 100%;
position: relative;
}
#contents > .slider-wrap > .slide{
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
display: none;
}
#contents > .slider-wrap > .slide:first-child{
display: block;
}
#contents > .slider-wrap > .slide > img{
width: 100%;
height: 100%;
display: block;
object-fit: cover;
}
#contents > .slider-wrap > .slide > span{
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
padding: 10px 20px;
font-size: 24px;
background-color: #ffffff88;
}
footer{
height: 120px;
background-color: #bbb;
}
</style>
</head>
<body>
<div id="wrap">
<main>
<header></header>
<section></section>
<div id="contents">
<div class="slider-wrap">
<div class="slide">
<img src="[Slide]/img1.jpg" alt="설명">
<span>이미지</span>
</div>
<div class="slide">
<img src="[Slide]/img2.jpg" alt="설명">
<span>이미지</span>
</div>
<div class="slide">
<img src="[Slide]/img3.jpg" alt="설명">
<span>이미지</span>
</div>
</div>
</div>
</main>
<footer></footer>
</div>
<script>
</script>
</body>
</html>