I have a div with a background image applied dynamically with JS. It works great except in iOS - both in iOS Safari & iOS Chrome, the background image just doesn't show. Very weird I didn't find any answer for that online. Here is how it looks normally:
And here it how it looks on iOS (ipad and iphone):
Here is the CSS, the background-image value was applied by JS:
.NavFrame {
width: 104px;
height: 58px;
background-position: center center;
background-size: cover;
margin-right: 2%;
background-image: url(http://www.test.com/test.jpg);
}
Any help will be appreciated.
UPDATE: Thank you all for the answers, however eventually it was some bug in my JS code. Anyway hope it can help someone else.