11、获取元素的方式

获取元素的方式


//IE浏览器下
oBox.currentStyle.width;
//非IE浏览器下
getComputedStyle(oBox).backgroundColor;//getComputedStyle(oBox)在IE浏览器下会报错




	
		please enter your title
		
		
		
	
	
		


你可能感兴趣的:(JS)