摘要:
functiongetStyleProperty(obj,property){varele=document.getElementById(obj),val='';//console.log(ele.ownerDocument.firstChild.innerHTML);if(ele.currentStyle){val=ele.currentStyle[property];}elseif(ele.ownerDocument.defaultView.getComputedStyle){//找到节点所属的document再找到其所属的windowval=ele.ownerDocum 阅读全文