Google AdSense 广告单元自适屏代码

源自网络,感谢大佬的付出

<div align="center">
<style>
.adsbygoogle-comment { width: 99%; height: 60px; padding: 1rem 0px }
@media(min-width: 500px) { .adsbygoogle-comment { width: 99%; height: 70px; padding: 1rem 0px} }
@media(min-width: 800px) { .adsbygoogle-comment { width: 99%; height: 90px; padding: 1rem 0px} }
</style> 
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Wyane's Blog 长方形 -->
<ins class="adsbygoogle adsbygoogle-comment"
     style="display:inline-block"
     data-ad-client="ca-pub-xxxxxx"
     data-ad-slot="xxxxxx"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>

转自:https://huaien.co/technology/modify-google-adsense-auto-style/

Google AdSense 广告单元自适屏代码

发表评论

必填项已用*标注