1
Je suis construction ionique 3 app et je veux rendre l'image en dégradé plus réactif. pour l'instant, quand je l'utilise avec l'iphone 5 ça a l'air bien mais quand je change d'autres appareils ça n'a pas l'air génial.fond avec dégradé inclure image sensible
fichier html
<ion-content>
<div class="bg">
<ion-icon name="list"></ion-icon>
<ion-grid>
<ion-row>
<ion-col text-center>
<h1>2<sup>nd</sup></h1>
<p>Current Position</p>
</ion-col>
<ion-col text-center>
<img src="assets/fcb.png" alt="">
</ion-col>
<ion-col text-center>
<img src="assets/lag.png" alt="" width="50px">
<p>lagiga</p>
</ion-col>
</ion-row>
<ion-row>
<ion-col text-center>
<h1>FC Barcelona</h1>
</ion-col>
</ion-row>
</ion-grid>
</div>
fichier css
page-home {
.bg {
height: 100%;
width: 100%;
background: linear-gradient(180deg, rgba(0, 0, 0, 0.98) 1.48%, rgba(3, 62, 119, 0.68) 12.52%, rgb(210, 17, 83) 89.52%), url('../assets/bg.jpg');
background-repeat: no-repeat;
background-position: center;
}
ion-icon {
color: #fff;
font-size: 3.2em;
margin-left: 15px;
}
ion-grid ion-row ion-col {
color: #fff;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
h1 {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-size: 2.6em;
font-weight: lighter;
}
}
.player {
height: 70%;
}
.name {
position: absolute;
h1 {
color: rgb(210, 17, 83);
}
}
}
iphone 5 iphone 6 - pas des regards que je veux que vous pouvez voir dans le zone rouge
@AdirZoari Il me fait plaisir :) – zynkn