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

标签 html css layout

总是当我用这种模式发送电子邮件时(有更多代码,但问题出在表格上),表格不正确。行是水平的而不是垂直的。

View from mail

如果需要,我可以发布 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>

最佳答案

您的 href 中缺少 "

关于html - 为什么这个 html 表格没有正确对齐?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59831537/

相关文章:

javascript - 在 JavaScript 中使用基于用户输入的条件的问题

jquery every() 无法识别 $(this)

html - 无法设置 HTML 表单输入占位符文本的样式

javascript - 隐藏后div框能否顺利重新排列,如何?

html - AngularJS-如何使用 ng-hide 隐藏元素?

javascript - 固定标题下方的固定导航栏

html - 如何修复有效的粘性页脚,但在调整浏览器窗口大小后,页脚重叠

javascript - 带有预览的不寻常的响应式拆分 slider

jquery - 如何用背景颜色覆盖相对定位的div

javascript - 去除除文本和特定属性值之外的 HTML