简体   繁体   English

iPhone无法正确显示背景图像

[英]iPhone not displaying background images correctly

I've just built a site with four content blocks sitting ontop of one another to create a longish page. 我刚刚建立了一个站点,其中四个内容块相互重叠,以创建冗长的页面。

Each block is the full width of the screen and the height of the screen and has a background image. 每个块是屏幕的整个宽度和屏幕的高度,并具有背景图像。

Now when the site loads it shows the first block and the background image displays correctly. 现在,在站点加载时,它会显示第一个块,并且背景图像会正确显示。 When the user scrolls to the second block the background image does not display until the majority of the block is in the viewport then it will load. 当用户滚动到第二个块时,背景图像不会显示,直到该块的大部分位于视口中,然后它才会加载。

Does anyone know why this would be the case, is it an iOS issue? 有谁知道为什么会这样,这是iOS问题吗?

如果从后台声明中删除“固定”,它将按您希望的那样工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM