实现页面滚动背景图片不动的效果
类似这个网站http://im.qq.com/
css属性:
position: relative;
background-attachment: fixed;
background-position: center 0;
background-repeat: no-repeat;
background-size: cover;
类似这个网站http://im.qq.com/
css属性:
position: relative;
background-attachment: fixed;
background-position: center 0;
background-repeat: no-repeat;
background-size: cover;