이미지 래퍼 (image-wrapper) 클래스를 가진 div 내에서 image-1 클래스의 div를 갖고 싶습니다. 하지만 많이 시도했지만 이미지 1의 클래스는 인라인으로 표시되지 않습니다. 내가 실수를 어디에서하고 있는지 알 수 있습니까? class="image-1"
와이미지가 왜 계속 나오지 않습니까?
<style>
*{
margin:0;
padding:0;
}
.wrapper{
width:100%;
height:400px;
background-color:#666;
padding:5px;
box-sizing:border-box;
overflow-x:hidden;
}
.image-wrapper{
width:300%;
height:390px;
background-color:#000;
}
.image-1{
width:100%;
height:100%;
background-color:#03F;
float:left;
display:inline-block;
}
</style>
</head>
<body>
<div class="wrapper">
<div class="image-wrapper">
<div class="image-1">
</div>
<div class="image-1">
</div>
<div class="image-1">
</div>
</div>
</div>
</body>
감사합니다 – user3542577