【发布时间】:2012-07-09 23:07:27
【问题描述】:
我正在尝试针对 720*1200 移动设备优化我的网页: My page
它在 320*480 和 480*800 设备上完美运行,但不适用于 720*1200。 页面加载放大, 就像布局视口是 720*1030 但视觉视口是 360*515。
我已经设置了视口标签,但是没有任何效果。
<meta name="viewport" content="width=device-width,user-scalable=false" />
<title>teeg bejelentkezes</title>
<link rel="stylesheet" type="text/css" media="only screen and (min-device-width:720px)" href="css/style-720.css" />
<link rel="stylesheet" type="text/css" media="only screen and (max-device-width:719px) and (max-width:719px) and (min-device-width:480px) and (min-width:480px)" href="css/style.css" />
<link rel="stylesheet" type="text/css" media="only screen and (max-device-width:479px) and (max-width:479px)" href="css/style-320.css" />
感谢您的帮助!
【问题讨论】:
标签: css responsive-design media-queries viewport mobile-devices