Background image width not 100% on iPad

前端 未结 2 2054
栀梦
栀梦 2021-01-20 01:21

My background images have not been spanning the full width of the browser when viewed on an iPad. This has happened more than once now, so it must be in the way I\'m writing

相关标签:
2条回答
  • 2021-01-20 01:56

    I tried using the suggestion above i.e. min-width:1024px in the body tag but it did not work. After a lot of searching I discovered adding it to the html tag also works.

    Example:

    html {
        min-width: 1024px;
        }
    
    0 讨论(0)
  • 2021-01-20 02:19

    Pretty sure iPad screen width is 1024px. Is that set anywhere?

    body{
     min-width:1024px;
    }
    

    Note: I've not got mine on me to test.

    0 讨论(0)
提交回复
热议问题