我想要在div中包含class image-1的div。 但我已經嘗試了很多,但類圖像-1的div沒有獲得內聯。 我可以知道我在哪裏做錯了嗎?爲什麼圖像不會一個接一個地來?
<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 2014-11-09 09:32:17