

让手机打开网页后自适应网页的宽度
在title行的上一行加上如下代码:
<meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
例:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<title>CJ103速溶咖啡粉</title>
</head>
<body>
<table width="100%" border="0">
<tr>
<td class="STYLE1">
<div align="right"><img src="logo2.jpg" width="102" height="50" /> </div>
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><strong>CJ103</strong><strong>速溶咖啡粉</strong><strong> </strong></td>
</tr>
<tr>
<td><strong>产 地:越南 </strong></td>
</tr>
<tr>
<td>成分:100%绿咖啡豆 </td>
</tr>
</table>
</body>
</html>