简体   繁体   English

为什么这个 html 表格没有对齐?

[英]Why is this html table not aligned right?

Always when i send an email with this pattern (there is more code, but the problem is at the table), the table is not correct showed up.总是当我发送带有这种模式的电子邮件(有更多代码,但问题出在桌子上)时,表格显示不正确。 The rows are horizontal not vertical.行是水平的而不是垂直的。

View from mail从邮件查看

If needed i can post css and whole html code.如果需要,我可以发布 css 和整个 html 代码。 I am new at stackoverflow, so sorry if this post does not fit with the regular template.我是 stackoverflow 的新手,很抱歉,如果这篇文章不适合常规模板。

<table>
      <tr>
           <th>Beruf</th>
           <th>Unternehmen</th>
           <th>Ort</th>
           <th>Freie Plätze</th>
           <th>Ausbildungsnummer</th>
     </tr>
     <tr>
           <td class="align-center">""" + str(jobs[0][1][0]) + """</td>
           <td class="align-center">""" + str(jobs[3][1][0]) + """</td>
           <td class="align-center">""" + str(jobs[1][1][0]) + """</td>
           <td class="align-center">""" + str(jobs[4][1][0]) + """</td>
           <td class="align-center"><a href="https://www.ihk-lehrstellenboerse.de/suche?query=""" + str(jobs[5][1][0]) + """>Zur Stelle</a></td>
     </tr>
     <tr>
           <td class="align-center">""" + str(jobs[0][1][1]) + """</td>
           <td class="align-center">""" + str(jobs[3][1][1]) + """</td>
           <td class="align-center">""" + str(jobs[1][1][1]) + """</td>
           <td class="align-center">""" + str(jobs[4][1][1]) + """</td>
           <td class="align-center"><a href="https://www.ihk-lehrstellenboerse.de/suche?query=""" + str(jobs[5][1][1]) + """>Zur Stelle</a></td>
     </tr>
     <tr>
           <td class="align-center">""" + str(jobs[0][1][2]) + """</td>
           <td class="align-center">""" + str(jobs[3][1][2]) + """</td>
           <td class="align-center">""" + str(jobs[1][1][2]) + """</td>
           <td class="align-center">""" + str(jobs[4][1][2]) + """</td>
           <td class="align-center"><a href="https://www.ihk-lehrstellenboerse.de/suche?query=""" + str(jobs[5][1][2]) + """>Zur Stelle</a></td>
     </tr>
     <tr>
           <td class="align-center">""" + str(jobs[0][1][3]) + """</td>
           <td class="align-center">""" + str(jobs[3][1][3]) + """</td>
           <td class="align-center">""" + str(jobs[1][1][3]) + """</td>
           <td class="align-center">""" + str(jobs[4][1][3]) + """</td>
           <td class="align-center"><a href="https://www.ihk-lehrstellenboerse.de/suche?query=""" + str(jobs[5][1][3]) + """>Zur Stelle</a></td>
     </tr>
     <tr>
           <td class="align-center">""" + str(jobs[0][1][4]) + """</td>
           <td class="align-center">""" + str(jobs[3][1][4]) + """</td>
           <td class="align-center">""" + str(jobs[1][1][4]) + """</td>
           <td class="align-center">""" + str(jobs[4][1][4]) + """</td>
           <td class="align-center"><a href="https://www.ihk-lehrstellenboerse.de/suche?query=""" + str(jobs[5][1][4]) + """>Zur Stelle</a></td>
     </tr>

</table>

你的hrefs中缺少“

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM