当我关闭键盘时,我的应用程序底部出现空白。这是我关闭UWP-
中的键盘的代码function setImage( e ) {
let img=document.getElementById( 'myimage' );
let result=document.getElementById( 'myresult' );
switch( e.target.tagName.toLowerCase() ){
case 'img': img.src=e.target.src; break;
case 'a': img.src=e.target.querySelector('img').src; break;
}
// adapted from code found on w3schools
/*
result.style.backgroundImage = "url('" + img.src + "')";
result.style.backgroundSize = ( img.width * cx ) + "px " + ( img.height * cy ) + "px";
*/
}
在this link中可以看到,Android中有解决此问题的方法,但UWP中没有解决方法。我不知道如何解决这个问题。有什么建议吗?