经常使用obj.style.xxx = ""或者xx = obj.style.xxx
只是对某个属性进行get或set
如果要对style的所有属性进行get或set那得怎么做?
obj.style=""? xxx= obj.style?
no obj.style 也是一个obj
具体 得用 obj.style.cssText ="color:#ff0000;border:1px solid #008800";
或xxx = obj.style.cssText;
经常使用obj.style.xxx = ""或者xx = obj.style.xxx
只是对某个属性进行get或set
如果要对style的所有属性进行get或set那得怎么做?
obj.style=""? xxx= obj.style?
no obj.style 也是一个obj
具体 得用 obj.style.cssText ="color:#ff0000;border:1px solid #008800";
或xxx = obj.style.cssText;