gpt4 book ai didi

html - rowspan 属性不跨越行

转载 作者:太空宇宙 更新时间:2023-11-04 12:22:46 26 4
gpt4 key购买 nike

我试图让最后一行跨越前一行的 3 行。但是由于某种原因,这不起作用,我已经用几种不同的方式多次重写了代码,但似乎无法让它起作用:

CSS:

.div_walkthroughs_wrapper {
position:absolute;
height:100%;
width:100%;
margin:0;
padding:0;
border:0;
}

#table_walkthroughs {
margin:0 auto;
height:100%;
}

#table_walkthroughs td {
vertical-align:middle;
text-align:center;
padding:10px;
border:1px solid black;
}

HTML:

<body>
<div class="div_walkthroughs_wrapper">
<table id="table_walkthroughs">
<tbody>
<tr>
<td>
column 1
</td>
<td>
column 2
</td>
<td>
column 3
</td>
</tr>
<tr>
<td rowspan="3">this row wont spant 3 rows</td>
</tr>
</tbody>
</table>
</div>
</body>

最佳答案

我认为您可能正在寻找 colspan 属性。

...
<tr>
<td colspan="3">this row wont spant 3 rows</td>
</tr>
...

关于html - rowspan 属性不跨越行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28245543/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com