【发布时间】:2014-12-15 09:12:51
【问题描述】:
请在下面找到我显示响应图像的代码:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>xxxxx</title>
<style type="text/css">
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
img {
max-width: 100%;
height: auto;
width:100%;
}
</style>
</head>
<body>
<!--<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="top">
<img src="http://www.xxxxx.com/images/Events/xxxxx.png" alt="xxxxx" />
</td>
</tr>
</table>-->
<div>
<img src="http://www.xxxxx.com/images/Events/xxxxx.png" alt="xxxxx" />
</div>
</body>
</html>
上面的响应式图像代码在iphone 上运行良好,但是当我在android 上打开页面时,图像在chrome 上显示并带有滚动条。在firefox 上运行良好。
更新
在桌面上的响应式设计视图中,该页面在 firefox 上运行良好。它在iphone 上运行良好。但它在android 电话上的响应速度不如预期。在android 手机上,它会在浏览器和电子邮件应用程序中显示滚动条。
如何使图像具有响应性,以便它可以在 iphone、android、chrome、firefox 以及电子邮件中使用???
【问题讨论】:
标签: android css html google-chrome firefox