【发布时间】:2015-09-05 16:55:31
【问题描述】:
我尝试使用 css 在我的网站背景上放置图像。我希望这些图像在我的背景上始终保持相同的位置。但是我的背景图片改变了大小并且图片移动了......
背景:
html{
background: url("../images/example.gif") no-repeat bottom right fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
图片:
.image{
position: fixed;
right: 219.5px;
top: 368px;
}
有什么想法可以让图像始终保持相同的位置吗?
【问题讨论】:
-
请分享任何有效的演示/jsfiddle 或实时链接,我们可以在其中检查此问题,以便我们以更好的方式提供帮助...thanx
标签: html css image css-position