Html 绝对定位在IE中不起作用

Html 绝对定位在IE中不起作用,html,css,internet-explorer,css-position,Html,Css,Internet Explorer,Css Position,这段代码在chrome和firefox中非常有效,但在IE中,绝对定位的div显示在右上角 <div id="three_pictures"> <img alt="3steps" src="/assets/3steps.jpg"> <a href="/users/new" style="position: absolute; top: 65px; left: 50px; width: 204px; height: 256px;"></a>

这段代码在chrome和firefox中非常有效,但在IE中,绝对定位的div显示在右上角

<div id="three_pictures">
   <img alt="3steps" src="/assets/3steps.jpg">
   <a href="/users/new" style="position: absolute; top: 65px; left: 50px; width: 204px; height: 256px;"></a>
   <a href="/get_a_present" style="position: absolute; top: 16px; left: 273px; width: 191px; height: 303px;"></a>   
   <a href="/posted_presents" style="position: absolute; top: 51px; left: 508px; width: 148px; height: 276px;"></a> 
</div>

我希望在图像的某些区域上有链接。

首先更改id名称,然后必须将此样式代码用于其名称

#stepsThree{
   position:relative;
}
我觉得它的,,
致以最诚挚的问候

这正是他们发明图像地图的目的。它们在HTML5中仍然有效并受支持。

三张图片的包含元素是什么?它是如何设置样式的(如果有)


如果没有,那么它看起来像是你的
margin:0px auto
实际上不处理
#three_pictures
元素(因为其上的
位置:相对;
样式),因此您需要将其包装在一个单独的div中,该div具有
边距:0px auto;宽度:700px样式。

。我只使用有问题的ID名称
#stepsThree{
   position:relative;
}