当前位置: 首页 > 网络学院 > 网页制作基础教程 > CSS > CSS background-attachment属性

CSS
CSS2 Aural
CSS 单位
CSS 颜色
CSS 颜色值
CSS 颜色名称
CSS 编码与组织技巧
CSS 模块化设计思路
CSS完美兼容IE6/IE7/FF的通用方法
CSS @ Ten: 下一个重要的东西

CSS background-attachment属性


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 346 ::
收藏到网摘: n/a

The background-attachment property sets whether a background image is fixed or scrolls with the rest of the page.
background-attachment属性可用来设置是否让背景图片固定或是滚动。

继承性:

举例

body 

background-image: url(stars.gif); 
background-attachment: scroll
}

可用值

描述
scroll The background image moves when the rest of the page scrolls
当页面滚动时背景也跟着移动
fixed The background image does not move when the rest of the page scrolls.
背景图片不随页面移动(固定在某个位置)

评论 (0) All

登陆 | 还没注册?