3
我想在webos應用程序中添加圖像並希望爲其添加單擊事件。我也無法在應用程序中放置背景圖像。我把這個代碼來設置Basic.css背景圖像文件如何將圖像放入webOS應用程序
body.palm-default {
background: url('../images/comman_bg.png') top left no-repeat;
z-index: -1;
position: fixed;
top: 0px;
left: 0px;
width: 320px;
height: 480px;
}
/* "splash" below is the scene name. Replace it with your scene name to get it to have a custom background */
#mojo-scene-splash-scene-scroller {
background: url('../images/splash-screenshot-default.png') top left no-repeat;
}
如果任何人有一組圖片代碼並單擊圖像事件,然後答覆。