function getCss(obj) {
if (obj.currentStyle) {
// 兼容ie
return obj.currentStyle;
} else {
return getComputedStyle(obj)
}
}
js获取计算后的css
最新推荐文章于 2021-12-04 10:39:33 发布
function getCss(obj) {
if (obj.currentStyle) {
// 兼容ie
return obj.currentStyle;
} else {
return getComputedStyle(obj)
}
}
1374

被折叠的 条评论
为什么被折叠?