<body>
<div></div>
<div></div>
<div></div>
<div></div>
<script>
var oDivArray = document.getElementsByTagName('div');
function getStyle(dom,attr){
if (window.getComputedStyle)
{return window.getComputedStyle(dom,null)[attr];}
else
{return currentStyle(dom,null);}
}
</script>
</body>
Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window':
parameter 1 is not of type 'Element'.橋本奈奈未
相关分类