我正在使用Jquery Mobile开发移动应用程序。我正在使用一个自定义主题,但想为不同的部分使用不同的页面背景图像。我目前使用这个代码:每个页面的自定义背景图像
.ui-overlay-a,
.ui-page-theme-a,
.ui-page-theme-a .ui-panel-wrapper {
background: transparent !important;
background: url('images/bgimage.jpg') !important;
background-repeat:no-repeat;
background-position:center center;
background-attachment:fixed !important;
background-size:100% 100% !important;
text-shadow: 0 0 0;
它工作正常,但所有页面上都出现相同的背景图像。
我如何自定义每页显示不同的背景图像,但仍然使用相同的主题,即在我的情况下a?
每个的头部施加一个'style'块页面并设置具体背景 – fcalderan 2014-11-25 11:03:08
您可以在每个页面上添加不同的页面背景.ui-page { background:url(images/bgimage.jpg)no-repeat left top; background-size:100%100%; } – Ved 2014-11-25 11:09:16