js用obj.currentStyle和getComputedStyle获取非行间样式的说明
obj.currentStyle 只在ie浏览器里支持
getComputedStyle 在 firefox chorm safari 浏览器里都支持
obj.currentStyle 具体的使用方法 如:
var color = obj.currentStyle.backgroundColor //获取obj的背景色
//设置obj背景色为红色
ob
原创
2017-08-18 08:16:49 ·
750 阅读 ·
0 评论