代码详细信息:
div {
background-image 3360 URL (/images/BG.jpg ); 设置div层的背景图像
background-repeat :否- repeat; 背景图像不会重复显示
备份报告:报告; 背景图像的横向和纵向重复
background-repeat:repeat-x; 背景图像的横向重复
background-repeat:repeat-y; 背景图像纵向重复
背景附加3360固定; 固定背景图像
背景附加3360 scroll; 滚动背景图像
background-position-x :左; 背景图像显示在水平方向的最左边
background-position-x : right; 背景图像显示在水平方向的最右边
background-position-y:top; 背景图像显示在纵向的顶部
background-position-y : bottom; 背景图像显示在垂直的底部
ack ground-position :100 %-50px;
}
范例
div {
ack ground : URL (/images/about _ BG.jpg ) no-repeat fixed;
background-position-y : bottom;
}
本文为若言博客网(http://www.blog520.com)原创作品,版权所有。 欢迎转载。 转载请注明原文的出处。 请不要注明作者和原文的出处。 若言博客网有权追究其法律责任。 原文链接: http://www.blog520.com/article/10185.html