Angular Colspan不在角6中工作

Angular Colspan不在角6中工作,angular,html-table,angular6,Angular,Html Table,Angular6,我有一张桌子如下: <table> <thead> <tr> // five columns in the table head <th colspan="3">ARTICLES</th> <th colspan="1">CLS/CRT</th> <th colspan="1">PIECE</th> <th co

我有一张桌子如下:

<table>
<thead>
    <tr>
// five columns in the table head
        <th colspan="3">ARTICLES</th>
        <th colspan="1">CLS/CRT</th>
        <th colspan="1">PIECE</th>
        <th colspan="1">prix par pièce</th>
        <th colspan="2">NOTES</th>
    </tr>
</thead>    
<tbody>
    <tr>
        <td colspan="3">
            <input type="text" matInput placeholder="Article" >
        </td>
        <td colspan="1">
            <input placeholder="Montant" type="number">
        </td>
        <td colspan="1">
            <input placeholder="PIECE" type="number">
        </td>
        <td colspan="1">
            <input matInput placeholder="prix par pièce" type="number">
        </td>
        <td colspan="2">
            <input placeholder="Écrivez Une note ici..">
        </td>
    </tr>
</tbody>

//表头中有五列
文章
阴极射线管
块
巴黎大奖赛
笔记


我以前使用angularJS创建过web应用程序,但我对Angular6还不熟悉。我正面临上述问题,无法通过搜索堆栈溢出找到任何帮助我的解决方案。

colspan
用于合并列,而不是调整列的大小。@trichetriche colspan用于合并列?这是否意味着如果
colspan
set等于2,那么一列等于两列?就是这样。但这并不意味着该列的宽度是原来的两倍:它意味着该列由两列组成。Colspans是基于表标题的:如果您有5个标题单元格,那么Colspans的总和必须等于5。在这里,你在它上面(3+1+1+1+2=8)。(并且colspan不用于标题单元格)@trichetriche仍然不工作,我认为这是因为angular 6没有声明
colspan
为本机属性哦html,有什么想法吗?