PDA

View Full Version : HTML body background-color shows in front of image since iOS 7



aurur
10-02-2013, 08:38 AM
Hello,

since the iOS 7 update one of my websites has the problem that the background-color of the body is in every other element. That leads to the problem that everywhere there is a margin or an opacity < 1 there is background-color to be seen instead of the background-image.

It works fine on iOS 6 and other systems.

Has anybody seen this problem or has an idea how to fix it?

Your help would be appreciated.

Raz0rEdge
10-02-2013, 10:03 AM
Please provide a link so that we can see it for ourselves..

aurur
10-02-2013, 11:20 AM
Please provide a link so that we can see it for ourselves..

I'm sorry but i can't do that.

Further looking into it showed me that the javascript responsible for "backstretching" the background-image creates a div-element with the image-element in and both have the "z-index" = -99999.

aurur
10-02-2013, 11:41 AM
Thanks for the interest; i found the solution:

<body style="background-color:transparent">

Though I still don't know why it happened.