href链接中的图像在ie7中不起作用 [英] image inside href link not working in ie7

查看:51
本文介绍了href链接中的图像在ie7中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将图像作为链接嵌入到href标签中,但是尽管同一页面在firefox和ie8中都可以正常工作,但图像在ie7中却无法作为链接.有人可以帮我吗?

I have embeded images as link in href tag, but the images are not working as link in ie7 although the same page is working fine in firefox and ie8. Can anyone help me out of it?

这是代码

    <a href="example.com">
        <div class="banner_box_1">
            <img src="images/facilities.jpg" width="156" height="70" alt="facilities" />
        </div>
   </a>

应用于图片div的css.banner_box_1 {宽度:156px;高度:70px;向左飘浮;边距:5px 13px;

The css applied on image div .banner_box_1{ width:156px; height:70px; float:left; margin:5px 13px;

}

我认为问题是CSS的bcoz,在ie7中混乱了

I think the problem is bcoz of css which is messing up in ie7

推荐答案

转换为base64的图像在ie7中不起作用,这是一个ie7错误:(

Images converted to base64 do not work in ie7, it's an ie7 bug :(

http://dean.edwards.name/weblog/2005/06/base64-ie/

您甚至可以在锚点内使用< div> 吗?

Can you even use <div> inside anchor ?

这篇关于href链接中的图像在ie7中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆