這裏是this page,在產品說明區域,我插入了很多圖像。圖像之間有間距損毀了描述區域的外觀和感覺。我在一個單獨的html文件中寫了描述區域代碼,並且沒有顯示間距,但是當我進入這個網站時,它顯示了這個間距。圖像間不需要的間距
下面是說明區域的代碼:
<div class="user-html">
<img src="http://i956.photobucket.com/albums/ae49/anwartheravian/Slice_01_zpsf96f2f18.jpg" alt="\\">
<img src="http://i956.photobucket.com/albums/ae49/anwartheravian/Slice_02_zps5735a5a8.jpg" alt="\\">
<img src="http://i956.photobucket.com/albums/ae49/anwartheravian/Slice_03_zpsf4933cc6.jpg" alt="\\">
<img src="http://i956.photobucket.com/albums/ae49/anwartheravian/Slice_04_zpsd74ee7ae.jpg" alt="\\">
<img src="http://i956.photobucket.com/albums/ae49/anwartheravian/Slice_05_zps103cc79e.jpg" alt="\\">
<img src="http://i956.photobucket.com/albums/ae49/anwartheravian/Slice_06_zps113ee0a8.jpg" alt="\\">
<img src="http://i956.photobucket.com/albums/ae49/anwartheravian/Slice_07_zps7e7846f8.jpg" alt="\\">
<img src="http://i956.photobucket.com/albums/ae49/anwartheravian/Slice_08_zpsa14f563d.jpg" alt="\\">
<img src="http://i956.photobucket.com/albums/ae49/anwartheravian/Slice_09_zps98ea736c.jpg" alt="\\">
<img src="http://i956.photobucket.com/albums/ae49/anwartheravian/Slice_10_zpse05cb796.jpg" alt="\\">
<img src="http://i956.photobucket.com/albums/ae49/anwartheravian/Slice_11_zps895af16e.jpg" alt="\\">
<img src="http://i956.photobucket.com/albums/ae49/anwartheravian/Slice_12_zps69ebae8b.png" alt="\\">
</div>
請指教如何擺脫這些空間的。
更新:看來,當我在themeforest網站的描述框區域內輸入任何內嵌樣式標籤時,它會去掉所有樣式標籤。所以,下面列出的所有答案都不起作用。其他解決方案?
css img {margin:0px;} – Medda86
@ Medda86空格不是來自圖像邊距,而是來自代碼中的實際空白,該空白顯示爲內嵌塊元素。 – Shomz