請在下面找到我的顯示響應圖像的代碼:響應圖像
<!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