CSS——background样式(CSS背景样式)
一、CSS背景样式
   background-color	          背景色
  background-image	      背景图(默认水平垂直都铺满)
  background-repeat	         平铺方式
  background-position:        背景位置
	    x y : number(px,%) | 单词  
		    x : left center right
		    y : top center bottom
		
  background-attachment:    背景图随滚动条移动的方式
	    scroll        默认值(背景位置按当前元素进行偏移)	
	    fixed           (背景位置按浏览器进行偏移)
	
	
二、CSS复合样式
  无顺序要求:
	    background: red url() repeat 0 0;
	    border: 1px red solid;
  有顺序要求:
	    font:	size family(多个值时,这两个项放最后)
		      最少要有两个值。
  注:不建议样式单一、复合混写,若真要写建议先写复合样式,再写单一样式,这样才不会被覆盖

 
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号