【发布时间】:2010-02-10 09:58:34
【问题描述】:
我的网站上有一张使用绝对定位的图片。它被定位为出现在 css-background-image 上。它在基于 gecko 的浏览器和 webkit 中运行良好。我很惊讶在包括 8 在内的两个版本的 IE 中看到同样的问题。我目前使用 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;
}
【问题讨论】:
-
缺少关闭 a 标签或只是错误的复制和粘贴?
标签: html css internet-explorer-7