取非行间的样式
例如:
style.width只能操作行间样式
currentStyle.width非行间样式 //只兼容IE
getComputedStyle(div1,false).width //chrome,火狐旧版本只兼容此方法
复合样式:background border...
单一样式:width height position...
复合样式不能直接取,如果取背景复合样式里面的颜色,可以取backgroundColor
取非行间的样式
例如:
style.width只能操作行间样式
currentStyle.width非行间样式 //只兼容IE
getComputedStyle(div1,false).width //chrome,火狐旧版本只兼容此方法
复合样式:background border...
单一样式:width height position...
复合样式不能直接取,如果取背景复合样式里面的颜色,可以取backgroundColor