困惹的A标签

in 未分类

今天在给一个img加链接时发现的

<body>
<a href="#1" ><img src="http://gg.blueidea.com/2007/60u/banner.gif" alt="" style="border:none;"/></a>
</body>

不加任何css

展现:

 

灰色部分是因为Firebug引起的

此时,在Firebug中选中a标签:

 

在Layout中发现该标签的高度为17px

 

这17px从哪来的?

<a href="#1"><img src="xxx.jpg" /></a>
<div id="tt"></div>

如果tt设定了背景图片,且定位为left top时,在IE下,背景图无法与上面的img进行无缝连接,而在FF下却是好的。

 

1 Comment

One Comment

  1. [img]http://www.zishu.cn/attachments/month_0711/v2007119173636.gif[/img]
    我这里是正常的; 我怀疑是不是其它代码对他有影响了.

Leave a Reply

Using Gravatars in the comments - get your own and be recognized!

XHTML: These are some of the tags you can use: <a href=""> <b> <blockquote> <code> <em> <i> <strike> <strong>