我的 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/