簡體   English   中英

為什么這個 html 表格沒有對齊?

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

總是當我發送帶有這種模式的電子郵件(有更多代碼,但問題出在桌子上)時,表格顯示不正確。 行是水平的而不是垂直的。

從郵件查看

如果需要,我可以發布 css 和整個 html 代碼。 我是 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