我想在 webos 应用程序中添加图像并想为其添加点击事件。我也无法在应用程序中放置背景图像。我将此代码用于在 Basic.css 文件中设置背景图像
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;
}
如果有人有设置图像的代码和图像的单击事件,请回复。