的静态背景图片
问题描述:
我想要实现这样的网站上:http://www.idividi.com.mk/的静态背景图片
两个上看起来像静态的侧面图像,我怎么能做到这一点的影响。 请你指点我一些方向。 由于提前,Laziale
答
使用background-attachment: fixed;
在你的CSS为body
元素:
body {
background-color: #fff;
background-image: url('path/to/image.png');
background-position: 50% 0;
background-repeat: none;
background-attachment: fixed;
}