简体   繁体   中英

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. I am new at stackoverflow, so sorry if this post does not fit with the regular template.

<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中缺少“

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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