中心对齐wordpress上的adsense

7he*_*ing 2 wordpress adsense

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

我试过的代码是:

<div style="margin:auto">  
    //AdSende Script
</div>
Run Code Online (Sandbox Code Playgroud)

BR

CSS*_*Guy 6

在中心标签或表格下添加adsense代码

<center>Adsense code here</center>
Run Code Online (Sandbox Code Playgroud)

或添加表格

<table width="100%">
  <tr>
    <td align="center">Adsense code here</td>
  </tr>
</table>
Run Code Online (Sandbox Code Playgroud)