jQuery:I';我在Internet Explorer中使用jQuery加载Adsense时遇到问题 ... google_ad_client=“pub-…”; 谷歌广告槽=“…”; 谷歌广告宽度=468; 谷歌广告高度=60; $(文档).ready(函数(){ jQuery('#adsref-1')。附录(jQuery('#ad-1')); });
这基本上是在其他内容加载后加载Adsense,但这些广告不会显示在Internet Explorer中。它适用于所有其他主流浏览器。尝试使用jQuery:I';我在Internet Explorer中使用jQuery加载Adsense时遇到问题 ... google_ad_client=“pub-…”; 谷歌广告槽=“…”; 谷歌广告宽度=468; 谷歌广告高度=60; $(文档).ready(函数(){ jQuery('#adsref-1')。附录(jQuery('#ad-1')); });,jquery,internet-explorer,browser,adsense,Jquery,Internet Explorer,Browser,Adsense,这基本上是在其他内容加载后加载Adsense,但这些广告不会显示在Internet Explorer中。它适用于所有其他主流浏览器。尝试使用而不是显示:无 如果你不喜欢它,因为它会占用页面空间,你可以添加width:1px;高度:1px;溢出:隐藏 <div id="ad-1"></div> ... <div style="display:none;"> <div id="adsref-1"> <script ty
而不是显示:无代码>
如果你不喜欢它,因为它会占用页面空间,你可以添加width:1px;高度:1px;溢出:隐藏代码>
<div id="ad-1"></div>
...
<div style="display:none;">
<div id="adsref-1">
<script type="text/javascript">
google_ad_client="pub-...";
google_ad_slot="...";
google_ad_width=468;
google_ad_height=60;
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div>
</div>
<script>
$(document).ready(function(){
jQuery('#adsref-1').appendTo(jQuery('#ad-1'));
});
</script>