2021-04-01 19:17发布
function getStyle(el, attr) {
return el.currentStyle ? el.currentStyle[attr] : getComputedStyle(el)[attr];
}
console.log(getStyle(oBox,"width"))
最多设置5个标签!
function getStyle(el, attr) {
return el.currentStyle ? el.currentStyle[attr] : getComputedStyle(el)[attr];
}
console.log(getStyle(oBox,"width"))
一周热门 更多>