Cannot read property 'style' of null解決辦法:把<script>引入js放在body的最下面,頁面加載玩就可以找到’main‘,否則獲取的getElementById(parent)為null.
用document,getElementByTagName,IE9以上版本
用document,getElementByTagName,IE9以上版本
2017-11-22
zhege top可以這樣求嗎?oBoxs[i].style.top = oBoxs[index].offsetTop + "px";
2017-11-19
獲得box wisha不是parent.getelementbyclassname("box);
huozhe或者parent.childNodes("box')之類啊 誰能幫我解答 @我 多謝
huozhe或者parent.childNodes("box')之類啊 誰能幫我解答 @我 多謝
2017-11-18
var div="<div class='box'><div class='pic'><img src='img/"+i+".jpg' /></div></div>";
這樣添加會更簡單
這樣添加會更簡單
2017-10-26
最后一個數(shù)據(jù)塊并不一定是在頁面上最靠下的數(shù)據(jù)塊
2017-10-17