gpt4 book ai didi

html - 如何使用 rowspan 覆盖单元格的 1.5 倍?

转载 作者:可可西里 更新时间:2023-11-01 13:31:44 26 4
gpt4 key购买 nike

此代码不会使最后 2 个单元格覆盖 3 个三行。我该如何解决?
这是代码:

        <table border="2">
<tr>
<th rowspan="3">Day</th>
<th colspan="3">Seminar</th>
</tr>
<tr>
<th colspan="2">Schedule</th>
<th rowspan="2">Topic</th>
</tr>
<tr><th>Begin</th><th>End</th></tr>
<tr>
<td rowspan="2">Monday</td>
<td rowspan="2">8:00 a.m.</td>
<td rowspan="2">5:00 p.m.</td>
<td>Introduction to XML</td>
</tr>
<tr><td>Validity:DTD and Relax NG</td></tr>
<tr>
<td rowspan="3">Tuesday</td>
<td>8:00 a.m.</td>
<td>11:00 a.m.</td>
<td rowspan="1.5">XPath</td>
</tr>
<tr>
<td>11 a.m.</td>
<td>2:00 p.m.</td>
</tr>
<tr>
<td>2:00 p.m.</td>
<td>5:00 p.m.</td>
<td rowspan="1.5">XSL Transformations</td>
</tr>
</table>

rowspan 不允许 1.5。如何在不将所有行和列加倍的情况下做到这一点?

最佳答案

我试过这个例子,这是我的版本:

<table width="500px" border="1" cellpadding="0" cellspacing="2px" style="text-align: center;">
<tr>
<td rowspan="3">DAY</td>
<td colspan="3">SEMINAR</td>
</tr>
<tr>
<td colspan="2">SHEDULE</td>
<td rowspan="2">TOPIC</td>
</tr>
<tr>
<td>BEGIN</td>
<td>END</td>
</tr>
<tr>
<td rowspan="2">Monday</td>
<td rowspan="2">8:00 am</td>
<td rowspan="2">5:00 am</td>
<td>Introduction to xml</td>
</tr>
<tr>
<td>Validaty: DTD and Relax NG</td>
</tr>
<tr>
<td rowspan="5">Tuesday</td>
<td rowspan="2">8:00 am</td>
<td rowspan="2">11:00 am</td>
<td rowspan="3">XPath</td>
</tr>
<tr></tr>
<tr>
<td rowspan="2">11:00 am</td>
<td rowspan="2">2:00 pm</td>
</tr>
<tr>
<td rowspan="2">XSL transformations</td>
</tr>
<tr>
<td>2:00 pm</td>
<td>5:00 pm</td>
</tr>
<tr>
<td>Wensday</td>
<td>8:00 am</td>
<td>12:00 pm</td>
<td>XSL Formatting Objects</td>
</tr>

预览 here

关于html - 如何使用 rowspan 覆盖单元格的 1.5 倍?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28381856/

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