Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230446

The background image of ion-content only appears in the browser, it does not appear in the Device in Ionic 4

$
0
0

It’s easier if you create another div, just to hold your background.
I have tried to insert a background image inside the ion-content but it didn’t work too…

<ion-content>
  <div class="background">
     ... resto do seu código
  </div>
<ion-content>

and the css for background

.background{
   width: 100%;
   min-height: 100%;
   background-image: url('url da imagem');
   background-size: cover;
}

Viewing all articles
Browse latest Browse all 230446

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>