How开发者_JAVA百科 can you get the property style.width if it is set with className?
It sounds like you need a node's computed width, which is its physical width after all styles are applied.
See here for how.
As you can see, elementNode.offsetWidth appears to be the most portable.
加载中,请稍侯......
精彩评论