开发者

Mobile Document Type Definition

Mobile site is not showing correctly. I have to zoom in to view my site correctly even if I have the correct DTD:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" 
"http://www.wapforum.org/DTD/xhtml-mobile12.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>MySite Mobile</title>
<link rel="stylesheet" type="text/css" href="mobile.css"/>
</head>
<body>
<!-- content -->
</body>
&l开发者_Python百科t;/html>

Do I have the correct DTD?


You are missing the viewport meta tag.

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

view this link https://developer.mozilla.org/en/Mobile/Viewport_meta_tag

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜