HTML 이메일을 만들고 있으며 각 nav 요소에 대해 테이블을 사용하기로 결정했습니다. 테이블을 인라인으로 표시해야합니다. 나는 display : inline-block을 사용했다; 원하는 결과를 만드는 테이블에서 테이블의 텍스트가 정렬되지 않습니다. 나는 text-align : center를 배치했다. 테이블, td 및 태그에 있지만 작동하지 않습니다.텍스트 정렬 센터가 인라인 블록 html 테이블에서 작동하지 않습니다.
div와 함께 작동하는 방법을 알고 있지만 테이블에 대한 해결책을 찾을 수 없습니다.
HTML
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right" valign="top">
<table class="navInline" width="130" height="35" border="0" cellspacing="0" cellpadding="0" bgcolor="#999966" style="text-align:center;">
<tr>
<td align="center"> <a href="#" style="text-decoration: none; color: #005E82;">
option 1
</a>
</td>
</tr>
</table>
<table class="navInline" width="130" height="35" border="0" cellspacing="0" cellpadding="0" bgcolor="#999966">
<tr>
<td align="center" style="text-align:center;"> <a href="#" style="text-decoration: none; color: #005E82;">
option 2
</a>
</td>
</tr>
</table>
<table class="navInline" width="130" height="35" border="0" cellspacing="0" cellpadding="0" bgcolor="#999966">
<tr>
<td align="center"> <a href="#" style="text-decoration: none; color: #005E82; text-align:center;">
option 3
</a>
</td>
</tr>
</table>
</td>
</tr>
CSS 여기
.navInline {
display:inline-block;
vertical-align:top;
text-align: center !important; }
http://jsfiddle.net/nathanaric/pf35h/9/
가 작동하지만 수레가 이메일을 Outlook에서 잘 처리되지 않는 매우 도움이 될 수있다 (http://www.campaignmonitor.com/css/) – nathanaric
은 유용한 링크를 감사합니다 – Itumac