当前位置: 代码迷 >> HTML/CSS >> 通过JavaScript动态获取元素样式,发现style属性只可写,并不可读。someElementObject.style.属性均为空字符串。为什么会这样?解决方案
  详细解决方案

通过JavaScript动态获取元素样式,发现style属性只可写,并不可读。someElementObject.style.属性均为空字符串。为什么会这样?解决方案

热度:193   发布时间:2012-03-03 15:33:03.0
通过JavaScript动态获取元素样式,发现style属性只可写,并不可读。someElementObject.style.属性均为空字符串。为什么会这样?
通过JavaScript动态获取元素样式,发现style属性只可写,并不可读。someElementObject.style.属性均为空字符串。为什么会这样?

------解决方案--------------------
这个问题是不是你后来知道为什么有currentStyle的原因了吧 ^_^
------解决方案--------------------
currentStyle
  相关解决方案