< img>之间的空间标签 [英] space between <img> tags
本文介绍了< img>之间的空间标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我使用此代码(两个标记之间有空格):
< img src =... ..style =border:0px; margin:0px/>
< img src =.....style =border:0px; margin:0px/>
图片之间有4个像素。如果我使用这个:
< img src =.....style =border:0px; margin: 0px/>< img src =....style =border:0px; margin:0px/>
图片之间的空白消失,在所有浏览器上!
为什么?
src =http://www.nataliedee.com/111908/whatever-dude-whatever.jpgstyle =border:0px; margin:0px; float:left; width:200px; />< img src =http://www.nataliedee.com/111908/whatever-dude-whatever.jpgstyle =border:0px; margin:0px; clear:both; width:200px; /> b
$ p http://jsfiddle.net/JNWc7/
if i use this code (with spaces between the two tags):
<img src="....." style="border:0px;margin:0px" />
<img src="....." style="border:0px;margin:0px" />
there are 4 pixels between images. if I use this:
<img src="....." style="border:0px;margin:0px" /><img src="...." style="border:0px;margin:0px" />
the space between images disappear, on all browsers!
Why????????
解决方案
<img src="http://www.nataliedee.com/111908/whatever-dude-whatever.jpg" style="border:0px;margin:0px;float:left;width:200px;" />
<img src="http://www.nataliedee.com/111908/whatever-dude-whatever.jpg" style="border:0px;margin:0px;clear:both;width:200px;" />
这篇关于< img>之间的空间标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文