課程
/前端開發
/JavaScript
/瀑布流布局
oElements=parent.getElementByTagName('*');瀏覽器調試顯示 ??對象不支持“getElementByTagName”屬性或方法,求幫助
2016-03-24
源自:瀑布流布局 2-3
正在回答
你用的是什么版本的瀏覽器,
所有代碼都有兼容問題的存在。
請叫我橙子蛋 提問者
getElementByTagName少了一個S
LiuYina
請叫我橙子蛋 提問者 回復 LiuYina
舉報
瀑布流布局是網站比較流行的一種布局方式,教你實現三大方式
1 回答var oElements=parent.getElementsByTagName('*');
1 回答控制臺報錯 var oelements = parent.getElementsByTagName('*');
3 回答Uncaught TypeError: parent.getElementByTagName is not a function 這個問題怎么解決
3 回答getByClass中new Array()后面為什么是逗號而不是分號?oElements既然是數組,不用先定義嗎?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2016-04-04
你用的是什么版本的瀏覽器,
所有代碼都有兼容問題的存在。
2016-03-24
getElementByTagName少了一個S