前面的讲的五个背景属性完全可以使用background属性代替.
body{background:transparent url('list-orange.png') repeat-x scroll center center;}
使用background解决所有问题.
body{background:url('list-orange.png') repeat-x scroll center center;}
由于背景颜色background-color的默认值为transparent,所以可以省略,这个例子和上面的例子是等价的.
body{background:url('list-orange.png') repeat-x center;}
由于背景图片随滚动轴的移动方式background-attachment的默认值为scroll,所以可以省略,背景图片的位置background-position中的属性值center center等价于center,这个例子和上面的例子也是等价的.
了解更多关于烟台网站建设的信息请查询:http://www.hannel.cn
小编:WY