CSS笔记

 

  1. CSS background-attachment 属性定义和用法


    background-attachment 属性设置背景图像是否固定或者随着页面的其余部分滚动。
    默认值: scroll
    继承性: no
    版本: CSS1
    JavaScript 语法: object.style.backgroundAttachment="fixed"

    实例
    如何设置固定的背景图像

    body { background-image: url(bgimage.gif); background-attachment: fixed; }

 

posted @ 2009-11-20 09:34  Jack C  阅读(157)  评论(0编辑  收藏  举报