2014-11-05 53 views
0

當我試圖動態添加內容時,div圖片正在擴展,但內容在圖片外顯示。內容顯示在可展開div圖片外

<div class="sentcontainer" > 
    <table style="margin-left:6%;"> 
     <td>if the content is long,going out og image</td> 
    </table>   
</div> 
.sentcontainer 
{ 
    background-image: url("../images/sent.png"); 
     background-size: 100% 100%; 
     margin-right: -8%; 
     overflow:auto; 
} 

請我打通。

+3

哪裏是你的'tr'(*錶行*)標記? – 2014-11-05 13:20:55

+1

@ RokoC.Buljan還有'img'?? – mattytommo 2014-11-05 13:21:22

+0

...以及你如何準確地添加你的內容和地點?我想你應該先添加缺失的標籤。 – 2014-11-05 13:23:35

回答

0

使用填充,而不是陌生的 -/+%的利潤率,並添加缺少的<tr>標籤:

jsBin demo