2

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:

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;

}

4

1 回答 1

0

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

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

要检查您可能需要哪些前缀,您可以CSS通过以下方式运行您的代码Prefixr这里

于 2012-09-24T09:24:55.110 回答