滚动时 网页背景怎样才可以原地不动啊
来源:百度知道 编辑:UC知道 时间:2024/05/09 05:21:14
滚动滚动轴时, 网页背景怎样才可以原地不动?
代码如下:
<style>
body {
background-repeat: no-repeat;
background-image: url("logo.gif");//你的图片地址
background-attachment: fixed;
background-position: center center;
}
</style>
你用的是Frontpage吧,设置水印,背景图片可动,可不动。