0

I inserted a background image using CSS in jquery mobile. This is the codes I used:

.ui-page {
background: transparent url(images/bg.png);
background-attachment:fixed;
background-repeat:no-repeat;
}

But this code doesn't work when deployed to the device.

Can anyone tell me what's wrong what did I lack?

Any help would be appreciated. Thanks in advance.

4

1 回答 1

0

迟到的回复,所以你可能已经找到答案了...

您需要对蔓越莓上的图像使用完整的 URL。

background-image:url('http://example.com/images/bg.png');

而不是你上面使用的

希望这可以帮助其他遇到此问题的人

于 2013-11-06T10:51:11.500 回答