请在下面找到我的显示响应图像的代码:响应图像
<!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
和电子邮件以及???
试过用'@ media'查询,但它仍然不工作 - @Mego – Valay 2014-10-20 12:39:33