My Android app needs to display an Html file that is stored on the local SD card. The html file is rather simple, here is the source code. It shows fine on some devices, but on some devices it is just blank(both are on Kitkat). I suspect it is somehow on these devices the webview can not show the image list(the img object) correctly. Any suggestions what can fix it by either change some of the settings for the webview or the html source code?
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<style>
img{
display: block;
width:100%;
margin-bottom: 22px;
}
</style>
</head>
<body><img src="pi/pi_0.png" alt="">
<img src="pi/pi_1.png" alt="">
<img src="pi/pi_2.png" alt="">
<img src="pi/pi_3.png" alt="">
<img src="pi/pi_4.png" alt="">
<img src="pi/pi_5.png" alt="">
<img src="pi/pi_6.png" alt="">
<img src="pi/pi_7.png" alt="">
<img src="pi/pi_8.png" alt="">
<img src="pi/pi_9.png" alt="">
<img src="pi/pi_10.png" alt="">
</body>
</html>
from local html file showing blank on some Android devices
No comments:
Post a Comment