I'm developing an application with phonegap(css3 + html5 + javascript) for iOS and Android 4.x. On Android 4.0.3 device, I use with css a background image as button with this code:
.mycssClass
{
background-image:url(../images/myImage.png);
background-repeat:no-repeat;
background-size:100%;
background-color:transparent;
border:none;
font-weight:300;
....
}
Now, the image is displayed correctly, but if I hold down on the screen, it becomes grainy. If I remove background-size:100%; solved the problem, but the image is not displayed in the correct size. I add some code lines for managing anti-aliasing, based on the proposal of this aid
https://developer.mozilla.org/en-US/docs/CSS/image-rendering
without good result.
Any suggestions?
Thanks in advance, Cristian