Some images not showing in mobile browser (but showing in desktop browser)

后端 未结 4 829
礼貌的吻别
礼貌的吻别 2021-01-12 08:01

I am having an issue where some images are not displayed in the mobile browsers on my iPhone, but I see them in all my desktop browsers. On my phone, I just see a blank box

4条回答
  •  北恋
    北恋 (楼主)
    2021-01-12 08:42

    Something that happened to me was that I was using background images and I was missing the closing ");" on the url. So images would still show in my computer but they would not show on any mobile browser. So, just for those crazies like me that might be too tired to figure this out. Don't forget to make sure the url is correct:

    My mistake

    url(resoures-services-dedicated-support.jpg
    

    The correct way

    url(resoures-services-dedicated-support.jpg);
    

    Disclaimer, even though this might not be the right answer, believe me guys, seeing this would have saved me a couple of neurons.

提交回复
热议问题