wordpress - 在 WordPress 上居中对齐 AdSense

标签 wordpress adsense

我的 WordPress 上有一个 Google AdSense 元素,但默认情况下它是左对齐的。如何使其在水平轴上居中对齐?

我尝试过的代码是:

<div style="margin:auto">  
    //AdSende Script
</div>

最佳答案

在中心标记下或表格中添加 AdSense 代码

<center>Adsense code here</center>

或者 添加表格

<table width="100%">
  <tr>
    <td align="center">Adsense code here</td>
  </tr>
</table>

关于wordpress - 在 WordPress 上居中对齐 AdSense,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9446661/

相关文章:

javascript - 单页scrollify.js 网站在输入基本网址时加载#contact 链接

php - 从 Woocommerce 中的 URL 变量填充结帐字段值

php - < p > 标签跳过第一段

php - 如何在 Wordpress REST API 中创建新的 rest url 前缀?

css - 有没有办法在响应式设计中调整 google adsense 的大小?

javascript - 我们需要每次都添加 adsbygoogle.js 吗?

php - 如何使用 Wordpress 内联整个样式表的内容?

selenium - 如何避免 WebDriver 在等待 Google Ads 或 Google Analytics 加载时卡住?

javascript - 是否可以提取 youtube channel /视频页面的 Adsense 发布者 ID?

c# - 如何在 C# 中读取 adsense URL(鼠标悬停时显示的 URL)