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

标签 html css ionic2

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

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/

相关文章:

jquery - 有光泽的 CSS3 图像叠加层无法正常工作

html - 当我的文本变长时,为什么我的框会不断扩大?

jquery - Bootstrap 下拉菜单充当 block 级元素

angular - 在样式标签 Angular 2 中使用变量

angular - ng2-charts - 无法绑定(bind)到 'datasets',因为它不是 'base-chart' 的已知属性

angular - 我们可以将 Angular Material 2 与 Ionic 一起使用吗?

javascript - 为什么当我在 Eclipse 的构建浏览器中使用 number var 时没有得到输出。?

c# - 将 html 表转换为等宽字体纯文本表?

css - Bootstrap 4 响应式按钮大小

html - Nested floats clearfix stretches to wrong height 解释