Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/32.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 图像未出现在IE7或IE8中_Html_Css_Internet Explorer 7 - Fatal编程技术网

Html 图像未出现在IE7或IE8中

Html 图像未出现在IE7或IE8中,html,css,internet-explorer-7,Html,Css,Internet Explorer 7,我的网站上有一张使用绝对定位的图片。它被定位为显示在css背景图像上。它在基于gecko的浏览器和webkit中运行良好。我很惊讶在IE的两个版本(包括8)中都看到了相同的问题。我目前正在使用一个png的图像,但尝试了一个jpg和它没有任何区别。下面是相关的标记和css…有什么想法吗 <div id="have_vid"> <div id="click_here"> <a href="/services"<img id="j

我的网站上有一张使用绝对定位的图片。它被定位为显示在css背景图像上。它在基于gecko的浏览器和webkit中运行良好。我很惊讶在IE的两个版本(包括8)中都看到了相同的问题。我目前正在使用一个png的图像,但尝试了一个jpg和它没有任何区别。下面是相关的标记和css…有什么想法吗

     <div id="have_vid">
     <div id="click_here">
        <a href="/services"<img id="join_now" src="<?php bloginfo('template_directory'); ?>/images/clickhere.png"</img></a>
     </div>
     </div>

#have_vid {
    width: 328px;
    height: 152px;
    background-image: url(images/havevid.jpg);
    background-repeat: no-repeat;
    float: right;
    margin-right: 10px;
    margin-top: 10px;
    padding-bottom: 14px;
    border-bottom:1px dotted #616161;
}

#click_here{
    position: absolute;
    top: 50px;
    right: 24px;
}

#有{
宽度:328px;
高度:152px;
背景图片:url(images/havevid.jpg);
背景重复:无重复;
浮动:对;
右边距:10px;
边缘顶部:10px;
填充底部:14px;
边框底部:1个点#6161;
}
#点击这里{
位置:绝对位置;
顶部:50px;
右:24px;
}

您的“A”元素错误。试一试

<a href="/services"><img id="join_now" src="<?php bloginfo('template_directory'); ?>/images/clickhere.png" /></a>


还可以使用查看IE是否正确下载图像。

您的

应该是:

 <a href="/services"><img id="join_now" src="<?php bloginfo('template_directory'); ?>/images/clickhere.png"</img></a>

标签上缺少关闭,还是只是复制粘贴错误?
 <a href="/services"><img id="join_now" src="<?php bloginfo('template_directory'); ?>/images/clickhere.png"</img></a>