【发布时间】:2013-09-04 00:56:36
【问题描述】:
我正在处理 Newsletter HTML,我无法让 div 居中对齐。如何将按钮对齐到 div 的中心。这是简单的代码
<table border="0" cellpadding="0" cellspacing="0" width="600">
<tr>
<td>
<div style="text-align:center;">
<a href="#" style="display:block; width:150px; text-decoration:none; font-weight:bold; color:#fff; background:#c72622; font-size:20px; border-radius:7px; -webkit-border-radius:7px; padding-top:10px; padding-bottom:10px;">
Buy Now
</a>
</div>
</td>
</tr>
</table>
【问题讨论】:
-
有人可以帮我吗:S ??? 2小时了还没有回复:(
标签: html alignment anchor center newsletter