CSS笔记
-
CSS background-attachment 属性定义和用法
background-attachment 属性设置背景图像是否固定或者随着页面的其余部分滚动。默认值: scroll 继承性: no 版本: CSS1 JavaScript 语法: object.style.backgroundAttachment="fixed" 实例
body { background-image: url(bgimage.gif);
如何设置固定的背景图像background-attachment: fixed;
}