DD_belatedPNG.js 是一個(gè)能是IE6支持p顯示ng透明圖片,而且還支持背景循環(huán)(background-repeat)和定位(backgrond-position) ,支持focus,Hover。
		
			使用方法:
		
			<!--[if IE 6]> <script src="DD_belatedPNG.js"></script> <script> DD_belatedPNG.fix('.png_bg'); </script> <![endif]-->
		
			其中:
		
			DD_belatedPNG.js 為文件路徑,.png_bg 為需要引用的容器名,如果需要多處引用可以使用如下方法:
		
			DD_belatedPNG.fix('.example1, .example2, img');
		
			其中.example1 和 .example2 為class 選擇器,img 就是標(biāo)簽了。
		
			如果需要修復(fù)頁面上的所有PNG圖片,則可以使用
		
			DD_belatedPNG.fix(‘*');
		
			ID選擇器例子:
		
			DD_belatedPNG.fix('#png');
		
			偽類例子:
		
			DD_belatedPNG.fix('.png a:hover,.png a:focus');
		
			img標(biāo)簽例子:
		
			DD_belatedPNG.fix('img');
		
			如果是多個(gè)直接加逗號(hào)(英文下的)就行。例如:
		
			DD_belatedPNG.fix('.png_bg,#png,.png a:hover,.png a:focus,img');
		
			官方網(wǎng)站:http://www.dillerdesign.com/experiment/DD_belatedPNG
	


 鄂公網(wǎng)安備 42090202000212號(hào)
鄂公網(wǎng)安備 42090202000212號(hào)