未捕获的错误:找不到宽度= 0px和data-ad-format = auto的容器的响应大小 [英] Uncaught Error: Cannot find a responsive size for a container of width=0px and data-ad-format=auto
本文介绍了未捕获的错误:找不到宽度= 0px和data-ad-format = auto的容器的响应大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个jquery移动页脚,在其中显示响应式adsense广告并获得以下内容:
I have a jquery mobile footer where I am showing a responsive adsense ad and getting the following:
Uncaught Error: Cannot find a responsive size for a container of width=0px and data-ad-format=auto
容器的响应大小我在哪里看到广告:
The container where I have the ad looks like:
<div data-role="footer" data-position="fixed" data-tap-toggle="false"></div>
,尺寸为320px x 50px。
and has dimensions of 320px by 50px.
即使我收到上述错误,广告仍在空间中显示。其他人看到了吗?感谢您的反馈。
An ad is showing in the space even though I am getting the error described above. Has anyone else seen this? Your feedback is appreciated.
推荐答案
使用time.onload比使用timeout更好的方法是:
Better way than using of timeout is using of window.onload:
window.onload = function() {
(adsbygoogle = window.adsbygoogle || []).push({});
};
这篇关于未捕获的错误:找不到宽度= 0px和data-ad-format = auto的容器的响应大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文