Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将第二个表格垂直对齐到 div 的顶部。我试过style="vertical-align:top;"了,但它似乎不起作用。代码:
style="vertical-align:top;"
<div class="q"> <table> <tr> <td><table>
将vertical-align属性设置在td
vertical-align
td
td { vertical-align: top; }
演示
没关系,通过应用 style="vertical-align: top;" 修复它 到 td 标签