有人知道如何更改和/或设置 jQueryMobile 构建的网站的背景图像吗? 因为我尝试了我发现的所有内容(实际上没有那么多),但我真的无法覆盖jquery mobile的默认CSS(http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1)。 0.min.css)添加我自己的。 希望得到您的帮助, 谢谢!
已解决:在 CSS 文件中,您必须覆盖 jQuery Mobile“.ui-mobile .type-home .ui-content”。 我就是这样做的:
.ui-mobile .type-home .ui-content {
background: white url(Image/A-HD.jpg);
background-repeat: no-repeat; background-position: 50% 80%; /*50% 80% mozilla optimized*/
background-attachment: fixed;
background-size: 50%; /*50% mozilla optimized */
}
最佳答案
你可以试试
.ui-page{
background:url("../../Images/your.png") no-repeat;
background-size:cover;
}
这段代码过去对我有用。
关于css - jQuery Mobile 更改背景图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11331291/