假設banner圖的id為"#banner",獲取banner元素的代碼為const banner=document.getElementById("#banner"),獲取banner圖實際高度的代碼為:banner.offsetHeight
網站導航
- zblogPHP模板zbpkf
- zblog免費模板zblogfree
- zblog模板學習zblogxuexi
- zblogPHP仿站zbpfang
假設banner圖的id為"#banner",獲取banner元素的代碼為const banner=document.getElementById("#banner"),獲取banner圖實際高度的代碼為:banner.offsetHeight