1
我有一个div与它的父div一起固定,在那个固定div中,我试图absolutley定位一个图像,但该图像的css根本没有做任何事情。图像显示出它的自然位置,我无法移动它!Absolutley在一个固定位置中定位一个元素
HTML
<div class="wrapper">
<div class="poster">
<div class="posterfixed">
<div class='18logo'>
<img src='../images/siteimages/18logo.png' />
</div>
<div>
</div>
</div>
CSS
.wrapper{
width:1280px;
position:relative;
border-left:1px solid #ffffff;
border-right:1px solid #ffffff;
margin: 0 auto 0 auto;
background:#000000;
overflow:hidden;
}
.poster{
float:left;
margin:-890px 0 0 890px;
width:390px;
min-height:512px;
}
.posterfixed{
position:fixed;
width:390px;
min-height:512px;
background-image:url(../images/siteimages/background.png);
}
.18logo{
position:absolute;
right:10px;
top:360px;
}
感谢您寻找....................
钉在头上!谢谢................ –