或者直接:.bg{background:#fff url(aa.png) fixed center no-repeat}
默认不是scroll么?
选D前两项是背景图分别是不重复和重复
Background-attachment:在CSS中可以通过设置Background-attachment属性来决定背景图片是否随着文字移动而移动,还是固定在一个位置上。
scroll:背景图像是随对象内容滚动
fixed:背景图像固定
或者直接:.bg{background:#fff url(aa.png) fixed center no-repeat}
默认不是scroll么?
选D前两项是背景图分别是不重复和重复
Background-attachment:在CSS中可以通过设置Background-attachment属性来决定背景图片是否随着文字移动而移动,还是固定在一个位置上。
scroll:背景图像是随对象内容滚动
fixed:背景图像固定