【问题标题】:image inside href link not working in ie7href链接中的图像在ie7中不起作用
【发布时间】:2010-04-19 15:12:14
【问题描述】:

我已将图像作为链接嵌入到 href 标记中,但图像在 ie7 中不能作为链接工作,尽管同一页面在 Firefox 和 ie8 中工作正常。谁能帮帮我?

这里是代码

    <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;

}

我认为问题在于 css 的 bcoz 在 ie7 中搞砸了

【问题讨论】:

  • 请提供更多细节、示例代码等。使用提琴手fiddler2.com/fiddler2
  • & 到目前为止你写的代码怎么样?
  • 请显示一些代码。你在用position: relative吗?
  • @Raj 提琴手?对于损坏的图片链接?

标签: html


【解决方案1】:

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

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

编辑: 你甚至可以在锚中使用&lt;div&gt; 吗?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-04-04
    • 1970-01-01
    • 2020-09-09
    • 2018-06-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多