9
嗨,我有以下代码在img
之上有几个链接。它在FF中运行良好,但不在IE中运行。看来IE无法点击,如果你把链接的img
img上的href链接
<div style="z-index:-6755;"><img alt="October Offer" src="images/offers/october-offer.jpg" /></div>
<a href="javascript:void(0);" onclick="window.parent.SqueezeBox.close();" style="text-decoration: none; width: 147px; height: 32px; position: inherit; bottom: 32px; left: 50px; border: 1px solid red; display: block;" target="_parent"> </a>
<a href="#" onclick="window.parent.SqueezeBox.close();">
<div style="display:block; width: 185px; height: 32px; position: relative; bottom: 50px; left: 260px;border:1px solid blue; "> </div>
</a>
我编辑了代码。它仍然没有任何意义,所以随意去看看源代码,如果更有意义 – 2010-09-23 15:19:47
您的HTML代码已损坏。 ''href ...'应该是'')不允许包含像div这样的块元素。 –
RoToRa
2010-09-23 15:22:05
href不是元素,而是属性 – 2010-09-23 15:23:21