ใส่ได้หลายวิธีครับ
- <center>Advertisements</center>
- <div style="text-align:center">Advertisements</div>
- ...
--------------------------------------------------------------------
ถ้าอยากได้ Code แบบ Responsive ตามนี้เลยครับผมใช้อยู่<style type="text/css">
.banner1 { display:inline-block; width:
336px; height:
280px; }
@media screen and (min-width : 660px) and (max-width : 1023px) {
.banner1 { width:
300px; height:
250px; }
}
@media screen and (min-width : 480px) and (max-width : 659px) {
.banner1 { width:
300px; height:
250px; }
}
@media screen and (max-width: 479px) {
.banner1 { width:
250px; height:
250px; }
}
</style>
<ins class="adsbygoogle banner1"
data-ad-client="
ca-pub-xxxxxxxxxxxxxxx"
data-ad-slot="
xxxxxxxxxx"></ins>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>
เอาไปประยุกต์ใช้ได้ครับ บางคนใช้มือถือจอเล็กๆ Banner ก็ไม่ต้องใหญ่มากมันจะแกะกะสายตาผู้ใช้ได้
ที่สำคัญจะได้เห็นโฆษณาได้เต็ม ไม่มีขาดตอน
