跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • Google Adsense廣告置中html
未分類
2020 年 5 月 9 日

Google Adsense廣告置中html

使用 HTML 決定廣告在網站上的刊登位置

您可以使用 HTML 標記 (<div>、<table> 等) 更改 Google 廣告的位置,就像安排網站上其他元素 (圖片、文章等) 一樣。舉例來說,如果您使用 <div align="center"> 和 </div> 這兩個 HTML 標記包圍住廣告程式碼,廣告會顯示在網頁中央。

<html>
<head> 這部分為頁首。 <title>HTML 範例網頁</title> </head> <body> 這部分為網頁內文。
<div align=”center”>
<script async src=”https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<!– Homepage Leaderboard –>
<ins class=”adsbygoogle”
style=”display:inline-block;width:728px;height:90px”
data-ad-client=”ca-pub-1234567890123456″
data-ad-slot=”1234567890″></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</body>
</html>
更多?來源:https://support.google.com/adsense/answer/9190028?hl=zh-Hant

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具