【发布时间】:2019-03-07 19:41:34
【问题描述】:
.scss
.content {
ion-grid {
height: 100% !important;
}
.row1 {
flex: 1 !important;
}
.row2 {
flex: 1 !important;
}
}
.html
<ion-content class="content">
<ion-grid>
<ion-row class="row1">
<ion-col size="12">
S-Works Venge Disc – SRAM eTAP
</ion-col>
</ion-row>
<ion-row class="row2">
<ion-col size="12">
<ion-row>
<ion-col size="12">
S-Works Venge Disc – SRAM eTAP
</ion-col>
</ion-row>
<ion-row>
<ion-col size="12">
Availability : Upon Request
</ion-col>
</ion-row>
<ion-row>
<ion-col size="12">
About
</ion-col>
</ion-row>
<ion-row>
<ion-col size="12">
We aren't satisfied with second fastest. Hello, why do you think we have our own Win Tunnel and the motto,
"Aero is Everything?" We live and breathe aero, because we know that aerodynamic optimization is the best
thing we can do to make you faster. And this philosophy has never been truer than with the new Venge. Being
eight seconds faster than the ViAS, it’s not only the most aerodynamic bike on the road, but it’s also lost
460 grams. And now with SRAM RED eTAP, you’re definitively looking at the new shape of speed.
</ion-col>
</ion-row>
</ion-col>
</ion-row>
</ion-grid>
</ion-content>
结果:
问:你能告诉我为什么上面的设计看不到50:50空间分配吗?
【问题讨论】:
标签: html css angular flexbox ionic4