【发布时间】:2012-07-13 11:10:55
【问题描述】:
我是这个开发领域的新手,我正在尝试弄清楚如何使用 Phonegap 制作 iOS 应用程序。我为不同的分辨率创建了四个不同的 CSS 文件。
<link rel="stylesheet" media="only screen and (max-device-width: 1024px)" href="css/ipad.css" type="text/css" />
<link rel="stylesheet" media="only screen and (max-device-width: 2048px)" href="css/ipad-retina.css" type="text/css" />
<link rel="stylesheet" media="only screen and (max-device-width: 480px)" href="css/iphone.css" type="text/css" />
<link rel="stylesheet" media="only screen and (max-device-width: 960px)" href="css/iphone-retina.css" type="text/css" />
我发现模拟器总是加载相同的 CSS 文件,即使我更换了设备。有没有办法让它正确加载css文件?
谢谢大家,顺便问一下,我的 CSS 调用正确吗?
【问题讨论】:
标签: css ios cordova xcode4 ios-simulator