【发布时间】:2018-03-27 14:48:59
【问题描述】:
我使用了 angular PrimeNg DataTable,我想在表格中同时显示页眉和页脚标签。但页脚设置不正确。 这是我的 HTML 代码:
<p-dataTable [value]="cars" scrollable="true" scrollHeight="200px" scrollWidth="600px" [style]="{'margin-top':'30px'}">
<p-header>Vertical and Horizontal</p-header>
<p-column field="vin" header="Vin" footer="Vin" [style]="{'width':'250px'}"></p-column>
<p-column field="year" header="Year" footer="Year" [style]="{'width':'250px'}"></p-column>
<p-column field="brand" header="Brand" footer="Brand" [style]="{'width':'250px'}"></p-column>
<p-column field="color" header="Color" footer="Color" [style]="{'width':'250px'}"></p-column>
</p-dataTable>
【问题讨论】: