当我尝试在 android 浏览器中加载以下 html 页面时,图像未根据分辨率重新调整大小
<html>
<header>
<meta name="viewport"
content="width=device-width,initial-scale=1.0, maximum-scale=1.0, target-densityDpi=device-dpi" />
<link rel="stylesheet" href="file:///android_asset/style.css"
type="text/css">
</header>
<body>
<p>This is a sample.</p>
<br />
<p>This is a sample. this is a sample to test text alignment This is a sample. this is a sample to test text alignment This is a sample. this is a sample to test text alignment This is a sample. this is a sample to test text alignment This is a sample. this is a sample to test text alignment This is a sample. this is a sample to test text alignment This is a sample. this is a sample to test text alignment This is a sample. this is a sample to test text alignment This is a sample. this is a sample to test text alignment This is a sample. this is a sample to test text alignment This is a sample. this is a sample to test text alignment This is a sample. this is a sample to test text alignment </p>
<br />
<img align="center" class="centeraligned"
src="file:///mnt/sdcard/Android/data/com.sample.sample/sample.jpg"
height="600" width="630" />
<br />
</body>
</html>
如果我设置视口内容宽度 = 600 图像看起来很好。但文本左对齐。我错过了视口中的任何设置吗?
PS:文本对齐问题仅在 Kindle Fire HD 和 Kindle Fire Classic 中出现。