Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/90.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 使用gmail和yahoo的表标签设计模板?_Java_Html_Css_Email_Yahoo - Fatal编程技术网

Java 使用gmail和yahoo的表标签设计模板?

Java 使用gmail和yahoo的表标签设计模板?,java,html,css,email,yahoo,Java,Html,Css,Email,Yahoo,在我的代码中,我使用了table tag align=center,以及带有该标记的一些属性 我的问题是,当谈到gmail时,我的表格模板设计在中间,但在yahoo mail中,表格指向左侧。我在下面附上我的桌子标签代码 <table id="main" width="570" align="center" cellpadding="0" cellspacing="15" bgcolor="ffffff"> <tr> <td> Th

在我的代码中,我使用了table tag align=center,以及带有该标记的一些属性

我的问题是,当谈到gmail时,我的表格模板设计在中间,但在yahoo mail中,表格指向左侧。我在下面附上我的桌子标签代码

<table id="main"  width="570"  align="center"  cellpadding="0"  cellspacing="15" bgcolor="ffffff">
<tr>
    <td>
      This is my main table data.
    </td>
</tr>
<tr>
    <td>
      This is my main table data1.
    </td>
</tr>

 </table>

这是我的主表数据。
这是我的主表data1。

您可以尝试以下选项

  • 也将
    align=“center”
    应用于您的TDs

  • 或者尝试在桌子上使用
    Style=text align:center

我来查一下


我希望其中一个能帮助您。

您是否尝试过margin:0 auto;到表中去?@G.L.P margin在电子邮件中不起作用。它更好地学习,这个网站有一些很好的解释部分。谢谢你的帮助。我通过使用带有align=center属性的div标记解决了这个问题