首页 > 解决方案 > Colspan 不能在 Angular 6 中工作

问题描述

我有一张如下表:

<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 应用程序,但我是 Angular 6 的新手。我面临上述问题,我无法通过搜索堆栈溢出找到任何对我有帮助的解决方案。

标签: angularhtml-tableangular6

解决方案


推荐阅读