S
S
Super_pechenka2020-01-20 12:46:53
css
Super_pechenka, 2020-01-20 12:46:53

Display background-image in mobile version of Safari?

The problem is this:
The mobile version of safari does not display images added via the background-image css property .
By default, I apply the following properties to the block:

background-image: url(*собственно ссылка*);
background-position: 50% 50%;
background-size: contain;
background-repeat: no-repeat;

It works everywhere, but not on safari. How to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hellcaster, 2020-01-20
@Super_pechenka

You have included WebP images. Safari does not support this resolution. It is necessary either through jpg / png, or write a script for webp.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question