-2

how to background image fixed in Ipad and iphone some problem with postion fixed

demo83.com/helm/ << see in chrome parallax effect perfect but iphone and ipad problem

3 Answers3

-1

If your image cannot span the width of the screen on its own, and you aren't repeating the image, then it won't span the width of the page.

Ryan Drake
  • 623
  • 3
  • 9
  • 30
-1

Use <!DOCTYPE HTML> at the top of the document before <html>

tika
  • 7,135
  • 3
  • 51
  • 82
  • This makes no difference, the problem is `background-size` [is not supported](http://caniuse.com/#search=background-size) in IE8. – misterManSam Sep 02 '14 at 06:59
-1

The property background-size is of CSS3. And support for this CSS3 property was introduced in Internet Explorer 9. So unfortunately IE8 does not support background-size.

You may find Javascript fixes or something but short answer is if you use CSS3 then look for newer browsers or read solutions for this issue.

Possible fixes:

  • Use Javascript/jQuery to find width of div and apply image of that size.
  • Use <img> it can easily be stretched to 100% width.
Community
  • 1
  • 1
XIMRX
  • 2,130
  • 3
  • 29
  • 60
  • This question is a duplicate of [this question](http://stackoverflow.com/questions/2991623/how-do-i-make-background-size-work-in-ie). The *easiest* solution is to use `filter: progid:DXImageTransform.Microsoft.AlphaImageLoader( src='YOUR IMAGE HERE', sizingMethod='scale');` – misterManSam Sep 02 '14 at 08:13