gpt4 book ai didi

html - ionic 2 : how to seperate two tables side by side

转载 作者:行者123 更新时间:2023-11-28 02:23:13 26 4
gpt4 key购买 nike

我正在尝试并排对齐两个表格。它即将到来,但它会将两个表格组合如下。如何分隔两个表格

enter image description here

.scss

当我给 margin left 完全移动时

.tablediv {
margin-top: 2.2vw;
float: left;
margin-left: 0vw;
overflow:auto;
}

.html

  <div *ngFor="let Table of Global_TablePerCard[TablePerCardIndexCounter]">
<div class="tablediv">
<table class="tablesalign">
<thead class="tableheader">
<div *ngFor = "let Param of Table; let j=index">
<div *ngIf = "j == 0; else elsetag">
<th class="col" *ngFor="let value of Param">
{{value}}
</th>
</div>
<div>
<ng-template #elsetag>
<tr>
<td *ngFor="let value of Param">
{{value}}
</td>
</tr>
</ng-template>
</div>
</div>
</thead>
</table>
</div>
</div>

最佳答案

填充效果很好。

padding: 2px 4px 2px 4px;

关于html - ionic 2 : how to seperate two tables side by side,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48090112/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com