Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70909

Image not showing in iOS device

$
0
0

@rubenmgar wrote:

Hi,
I’ve a problem with an image, running in device (iOS). The image is a background-image, for “barra”. “barra” is a ion-toolbar in ion-header. This code is in app/app.scss

.barra {
  background-color: transparent;
  background-image: url("../assets/img/pantalla-inici5_fons_up.png");
  background-size: 100% 50px;
  background-repeat: no-repeat;
  background-position: left top;
  height: 80px !important;
  width: 100%;
  border-bottom: none;
  padding-top: 0;
  font-size: 12px;
}

But I use another image, and it works!

ion-content {
background-image: url("../assets/img/fons1.jpg");
-webkit-background-image: url("../assets/img/fons1.jpg");
color: #fff;
}

Both images are in src/assets/img. When I create IPA, and copy to device, ion-content backgorund is shown, but “barra” background, no. Safari shows “Failed to load resource: The requested URL was not found on this server. file:///var/containers/Bundle/Application/______/______.app/www/build/assets/img/pantalla-inici5_fons_up.png”

I’ve seen some other topics, about images folders, and trying to change “assets” path.

Any ideas? Thank you!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70909

Trending Articles



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