Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/78.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
嵌套HTML表行元素是否可以接受?_Html_Html Table - Fatal编程技术网

嵌套HTML表行元素是否可以接受?

嵌套HTML表行元素是否可以接受?,html,html-table,Html,Html Table,我正在尝试制作一张如下所示的桌子: 这是我的代码: <table> <tr> <th></th> <th>Focus</th> <th>Impact</th> <th>Goal</th> <th>Supporters</th> <th>D

我正在尝试制作一张如下所示的桌子:

这是我的代码:

<table>
    <tr>
        <th></th>
        <th>Focus</th>
        <th>Impact</th>
        <th>Goal</th>
        <th>Supporters</th>
        <th>Days Left</th>
        <th>Donation Form</th>
    </tr>

    <tr>
        <tr>

            <td><a href="https://staging.dev.compassion.com/act/preview-fundraiser.htm?fid=1" class="js-campaign-title name-link ">First!</a></td>
            <td>Fundraiser</td>
            <td>$0</td>
            <td>0%</td>
            <td>0</td>
            <td>47</td>
            <td><a href="http://staging.dev.compassion.com/services/act/donationformpdfhandler.ashx?fid=1" target="_blank" title="Download the offline donation form for this fundraiser in PDF format."><i class="fa fa-file-pdf-o"></i></a></td>

        </tr>

        <tr >

            <td colspan="7"><i class="fa fa-exclamation-circle"></i> Your campaign has not been launched.</td>

        </tr>
    </tr>
</table>

集中
影响
目标
支持者
剩下的日子
捐款表格
募捐者
$0
0%
0
47
您的活动尚未启动。

但我不认为tr中包含tr是语义上的。还是这样?我怎样才能做到这一点呢?

如前所述,你的标签太多了。 就个人而言,我也会使用
,但这不是必需的


集中
影响
目标
支持者
剩下的日子
捐款表格
募捐者
$0
0%
0
47
您的活动尚未启动。

如果没有外部的
,它不会正确渲染吗?从设计上看,浏览器具有惊人的容错能力,但这不是这样做的好理由。所以请不要。我应该说没有外部
我不确定我是否理解您试图用外部
解决的问题。如果您正在寻找容器,可以使用
。但是你是正确的,一个
不应该立即嵌套在另一个
中,但是你可以嵌套一个完整的表。我建议使用与@HJ05相同的方法,如果你需要对多个
元素进行分组,请使用
作为容器。