CSS.background_背景
1、CSS background 属性.html(http://www.w3school.com.cn/cssref/pr_background.asp)
background 简写属性在一个声明中设置所有的背景属性。 可以设置如下属性: background-color background-position background-size background-repeat background-origin background-clip background-attachment background-image 如果不设置其中的某个值,也不会出问题,比如 background:#ff0000 url('smiley.gif'); 也是允许的。 通常建议使用这个属性,而不是分别使用单个属性,因为这个属性在较老的浏览器中能够得到更好的支持,而且需要键入的字母也更少。
1.1、HTML DOM background 属性.html(http://www.w3school.com.cn/jsref/prop_style_background.asp)
语法: Object.style.background = background-color background-image background-repeat background-attachment background-position
ZC:原来,顺序是这样的:背景色,背景图像,背景图像是否&如何重复,背景图像固定/滚动,背景图像起始位置。
2、背景色 透明:
background-color: transparent;
3、
4、
5、