我正在使用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