IE8轮播问题

ie8加不上margin-left属性
之前为:ele.style['margin-left'],失败

目前两种方法:
ele.style.marginLeft = ...
ele.setAttribute('style','margin-left:'+...+'px')

或者可以使用ele.style.cssText = "margin-left:"+ ... + 'px'

目前测试效果不好,可参照bootstrap轮播图效果,针对ie8变一种方法实现
http://blog.csdn.net/yongh701/article/details/40683137

参考链接
How do I set the margin of an object with javascript?

Cross-browser (IE8-) getComputedStyle with Javascript?

IE javascript setting style.left not working

setInterval not working properly on Chrome

Is there a way to detect if a browser window is not currently active?

Jquery setInterval too fast when coming from another tab

当使用的setInterval,如果我切换标签在Chrome回去,slider去疯狂追赶

@2017-05-06 22:28