E
E
Erling2016-03-04 19:34:34
css
Erling, 2016-03-04 19:34:34

Why don't background-images work for divs?

Made a layout. Everything works in all browsers.
There are several blocks to which image loading is implemented not through IMG, but as background-image.
Today I received a message from a client that on a Samsung p7500 tablet (Android 4.0) images are not loading, but background-color works (as a fallback in case of failure to load).
I do not understand how to approach to understand what the problem is and how to solve it? Thanks

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Ukolov, 2016-03-04
@Erling

Since you didn’t provide any code or a link to the site, we’ll talk about spherical CSS in a vacuum:

CSS 2.1 properties (well-supported subset): background-image
These properties are supported in effectively all browsers (since IE6+, Firefox 2+, Chrome 1+ etc)
Includes the following:
...
background-image
...

caniuse.com/#search=CSS%202.1%20properties
Most likely the problem is something else. But there are no fortune-tellers here - look for a device with a problem and debug it.

A
Arthur, 2016-03-04
@astralo

options
1. the client did not update the browser cache and the image did not load
2. the image is overwritten by some style from mobile styles

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question