本文共 482 字,大约阅读时间需要 1 分钟。
??animation???????????document.getElementById('...').style??????????????????????????????????style???????????????????????????
????????????currentStyle?getComputedStyle?????currentStyle???IE?????getComputedStyle??????????????????????????????getStyle???
function getStyle(el, attr) { return el.currentStyle? el.currentStyle[attr] : getComputedStyle(el, null)[attr];} ???????????????????????????????????div???left?????10px??????????currentStyle?getComputedStyle????????????????style???
转载地址:http://gmpj.baihongyu.com/