#include <stdio.h>
int main() {
FILE *fp;
int c, i, max;
fp = fopen("tugasz.ksa", "rb");
if (fp == NULL) {
fprintf(stderr, "cannot open input file\n");
return 1;
}
for (i = 0, max = 4900; i < max && (c = getc(fp)) != EOF; i++) {
printf("%02x", c);
if (i % 16 == 15)
putchar('\n'); // 16 bytes per line
else if (i % 2 == 1)
putchar(' '); // group bytes in pairs
}
if (i % 16 != 0)
putchar('\n'); // output a newline if needed
fclose(fp);
return 0;
}
.ui-table .ui-table-frozen-view .ui-table-tbody > tr > td,
.ui-table .ui-table-unfrozen-view .ui-table-tbody > tr > td {
height: 24px !important;
}
我正在使用<h3>Frozen Column Groups</h3>
<div style="width:800px">
<p-table [value]="sales" [scrollable]="true" scrollHeight="200%" frozenWidth="200px" >
<ng-template pTemplate="frozencolgroup">
<colgroup>
<col style="width:200px;">
</colgroup>
</ng-template>
<ng-template pTemplate="colgroup">
<colgroup>
<col style="width:80px;">
<col style="width:80px;">
<col style="width:80px;">
<col style="width:80px;">
<col style="width:80px;">
<col style="width:80px;">
<col style="width:80px;">
<col style="width:80px;">
</colgroup>
</ng-template>
<ng-template pTemplate="frozenheader">
<tr>
<th style="height:84px">Brand</th>
</tr>
</ng-template>
<ng-template pTemplate="frozenbody" let-sale>
<tr>
<td>{{sale.brand}}</td>
</tr>
</ng-template>
<ng-template pTemplate="frozenfooter" let-sale>
<tr>
<td>One</td>
</tr>
</ng-template>
<ng-template pTemplate="header">
<tr>
<th colspan="8">Sale Rate</th>
</tr>
<tr>
<th colspan="2">Sales</th>
<th colspan="2">Profits</th>
<th colspan="1">A</th>
<th colspan="1">B</th>
<th colspan="1">C</th>
<th colspan="1">Profits</th>
</tr>
<tr>
<th>Last </th>
<th>This </th>
<th>Last </th>
<th>This </th>
<th colspan="1">A</th>
<th colspan="1">B</th>
<th colspan="1">C</th>
<th colspan="1">Profits</th>
</tr>
</ng-template>
<ng-template pTemplate="body" let-sale>
<tr>
<td>{{sale.lastYearSale}}</td>
<td>{{sale.thisYearSale}}</td>
<td>{{sale.lastYearProfit}}</td>
<td>{{sale.thisYearProfit}}</td>
<td>{{sale.lastYearSale}}</td>
<td>{{sale.thisYearSale}}</td>
<td>{{sale.lastYearProfit}}</td>
<td>{{sale.thisYearProfit}}</td>
</tr>
</ng-template>
<ng-template pTemplate="footer" let-sale>
<tr>
<td>One</td>
</tr>
</ng-template>
</p-table>
,我创建了一个具有冻结和未冻结视图的p表。我添加了Frozenfooter和普通的“ footer”。问题是单杠在冻结视图中位于主体和页脚之间。有人可以告诉我如何使单杠出现在页脚之后吗?
我添加了Frozenheader,frozenbody,frozenfooter和普通页眉,body,footer