【发布时间】:2020-07-03 03:46:13
【问题描述】:
我需要为移动设备的 bootstrap col 制定不同的订单。我发现许多堆栈溢出问题重新分级了这个主题,但我没有看到任何与更改不同行上的列的顺序相关的主题。
<div class="row d-flex justify-content-around mb-5">
<div id="selectProductCol" class="col-sm-12 col-lg-5">
<div class="d-flex flex-column">
<div class="d-flex justify-content-between">
<mat-placeholder class="placeholder mr-3 mb-1">בחר סוג מוצר</mat-placeholder>
<span class="ml-3" matSuffix matTooltip="סוג מוצר" matTooltipPosition='right'>
</span>
</div>
</div>
</div>
<div id="selectCashierCol" class="col-sm-12 col-lg-5 order-first order-md-last">
<div [@fade]="products.length > 0 ? 'active' : 'inactive'">
<div class="d-flex flex-column">
<div class="d-flex justify-content-between">
<mat-placeholder class="placeholder mr-3 mb-1">בחר קופה</mat-placeholder>
<span class="ml-3" matSuffix matTooltip="שם הקופה" matTooltipPosition="right">
</span>
</div>
</div>
</div>
</div>
</div>
<div class="row d-flex justify-content-around mb-5">
<div id="selectInsuranceCol" class="col-sm-12 col-lg-5" [@fade]="companies.length > 0 ? 'active' : 'inactive'">
<div class="d-flex justify-content-between">
<mat-placeholder class="placeholder mr-3 mb-1">בחר חברת ביטוח</mat-placeholder>
<span class="ml-3" matSuffix matTooltip="שם חברת הביטוח" matTooltipPosition='right'>
</span>
</div>
</div>
<div id="addImageCol" class="col-sm-12 col-lg-5 text-center align-self-center">
<div *ngIf="policyForm.get('firstPage.productType').value?.type !== 'executive' &&
policyForm.get('firstPage.productType').value?.type !== null ">
<button mat-button type="button" id="uploadFileButton" class="form-upload-btn">
<label>
<input type="file" (change)="setFile($event.target)">
</label>
</button>
</div>
</div>
</div>
我需要在手机上替换selectCashierCol和selectInsuranceCol cols的顺序
【问题讨论】:
标签: css twitter-bootstrap mobile bootstrap-4 responsive-design