IE使用img src作为href

时间:2012-09-25 12:22:47

标签: image hyperlink

我在textwidget中有以下代码

<div class="social">
    <a href="http://www.facebook.com/peakit.nl" target="_blank"><img src="http://www.peaktest.nl/wp-content/uploads/facebook-icon.png" border="0" alt="facebook"></a>
    <a href="http://www.linkedin.com/company/peak-it" target="_blank"><img src="http://www.peaktest.nl/wp-content/uploads/linkedin-icon.png" border="0" alt="linkedin"></a>
    <a href="https://twitter.com/PEAKIT" target="_blank"><img src="http://www.peaktest.nl/wp-content/uploads/twitter-icon.png" border="0" alt="twitter"></a>
    <a href="http://www.youtube.com/user/peakit" target="_blank"><img src="http://www.peak-it.nl/wp-content/uploads/youtube-icon.png" border="0" alt="youtube"></a>
</div>

除IE8和IE9外,所有浏览器都可以正常使用。 如果我单击图像,它将加载带有图像的页面(img src url)。当我右键单击图像并在另一个选项卡中打开时,它将显示正确的页面(href)。

我在这里缺少什么?

这是IE输出:

<div class="social">

    <a href="http://www.facebook.com/peakit.nl" target="_blank">
        <img border="0" alt="facebook" src="http://www.peaktest.nl/wp-content/uploads/facebook-icon.png"></a>

    <a href="http://www.linkedin.com/company/peak-it" target="_blank">
        <img border="0" alt="linkedin" src="http://www.peaktest.nl/wp-content/uploads/linkedin-icon.png"></a>

    <a href="https://twitter.com/PEAKIT" target="_blank">
        <img border="0" alt="twitter" src="http://www.peaktest.nl/wp-content/uploads/twitter-icon.png"></a>

    <a href="http://www.youtube.com/user/peakit" target="_blank">
        <img border="0" alt="youtube" src="http://www.peak-it.nl/wp-content/uploads/youtube-icon.png"></a>

</div>

1 个答案:

答案 0 :(得分:0)

感谢您的提示!结果是客户安装的Google Analytics Suite插件使用了干扰的jquery脚本。我们停用它,现在一切正常