1.背景-background 写法 单个属性的写法: div{ background-image: url(1.gif); /*背景图片*/ background-repeat: no-repeat; /*不平铺*/ background-attachment: fixed; /*随文本滚动*/ background-position