如何在iPhone上查看背景图像?

时间:2020-11-29 19:35:59

Im making a mobile website with jQuery Mobile, HTML and CSS and Im trying to add a bakground image. On my computer I can see it, its fully visible and reacting when Im making changes but when I test it on my iPhone there is no image. I cant see it. I know the phone is fully connected and all because text and other things I can change. Anyone know how to solve this? This is the CSS-code:

我正在制作一个带有jQuery Mobile,HTML和CSS的移动网站,我试图添加一个bakground图像。在我的计算机上,我可以看到它,当我进行更改时它完全可见并作出反应但是当我在iPhone上测试它时没有图像。我看不到它。我知道手机是完全连接的,因为我可以改变文字和其他东西。有谁知道如何解决这个问题?这是CSS代码:

body {
    background: transparent url(Images/phoneWallpaper.jpg) 0 0 no-repeat fixed !important;
    background-size: cover;
    background-repeat: no-repeat;
    background-position:center center;
    background-attachment:scroll;

}

.ui-page {
    background: transparent;

}​

.ui-content{
    background: transparent;

}

1 个解决方案

#1


0  

You may need to add some vendor prefixes to the background CSS

您可能需要在后台CSS中添加一些供应商前缀

This article may help: Here

这篇文章可能有所帮助:这里

To check what prefixes you may need, you can run your CSS code through Prefixr: Here

要检查您可能需要的前缀,可以通过Prefixr运行CSS代码:此处

#1


0  

You may need to add some vendor prefixes to the background CSS

您可能需要在后台CSS中添加一些供应商前缀

This article may help: Here

这篇文章可能有所帮助:这里

To check what prefixes you may need, you can run your CSS code through Prefixr: Here

要检查您可能需要的前缀,可以通过Prefixr运行CSS代码:此处