好吧,所以首先我已經嘗試過溢出:隱藏;但它沒有工作,所以基本上這是我的div看,但是當我添加更多的圖像到它的div不擴大與它。Div沒有與圖片擴大
.working{
width: 600px;
height: 2000px;
background-color: #ECECEC;
border-style: ridge;
border-width: 5px;
overflow: hidden;
}
<div class="working">
<p align: left; style="font-size: 25px; font-weight: bold; color: #39F51B; display: block;"> <img src="img/shopify.jpg" align="middle" style="width: 100px; height: 100px;">
Shopify dropshipping</p>
<p align: left; style="clear: left; display: block; font-size: 25px; font-weight: bold; color: black;"><img src="img/code.png" align="middle" style="width: 100px; height: 100px;">
Coding </p>
<p align: left; style="clear: left; display: block; font-size: 25px; font-weight: bold; color: black;"><img src="img/ads.jpg" align="middle" style="width: 100px; height: 100px;">
Advertisement </p>
<p align: left; style="clear: left; display: block; font-size: 25px; font-weight: bold; color: black;"><img src="img/amazon.png" align="middle" style="width: 100px; height: 100px;">
Amazon Mechanical Turk </p>
<p align: left; style="clear: left; display: block; font-size: 25px; font-weight: bold; color: black;"><img src="img/fiverr.png" align="middle" style="width: 100px; height: 100px;">
Fiverr </p>
<p align: left; style="clear: left; display: block; font-size: 25px; font-weight: bold; color: black;"><img src="img/foap.jpg" align="middle" style="width: 100px; height: 100px;">
Sell your photos </p>
<p align: left; style=" font-size: 25px; font-weight: bold; color: black;"><img src="img/pocketflip.jpg" align="middle" style="width: 100px; height: 100px;">PocketFlip</p>
</div>
無法看到「運行代碼片段」的任何問題和的jsfiddle –