請問有人遇到 Google AdSense widgets 設定 position: right,出現 Uncaught TagError 嗎 #1321
Unanswered
forgetfulengineer
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
問題描述
設定 position: right 的 Google AdSense widgets,不定時會出現
Uncaught TagError: adsbygoogle.push() error: No slot size for availableWidth=0的錯誤訊息,導致廣告的區塊是空的。我的部落格左右都有設定 Google AdSense widgets,但是只有右邊的廣告會出現這個狀況。延伸問題
這個問題是在我自行嵌入廣告的時候發現的,當我在文末嵌入廣告時,右側的廣告始終是空的,沒有出現錯誤訊息,但左側及文末的廣告皆正常顯示。
嘗試處理問題
目前查詢錯誤訊息,得到的解法
設定父容器寬度
我嘗試設定父容器寬度,右側廣告依舊沒有顯示
放置 AdSense 程式碼的元素載入時不能是隱藏狀態
關閉icarus的網頁載入特效,右側廣告依舊沒有顯示
網站完全載入後再載入廣告
右側廣告依舊沒有顯示
Beta Was this translation helpful? Give feedback.
All reactions