javascript - 在视网膜显示屏上使用 jquery mobile 的数据图标问题

标签 javascript jquery iphone jquery-mobile

我在使用 jquery mobile 并在视网膜显示屏上测试应用程序时遇到了以下问题。 我正在使用 jquerymobile 框架的当前候选版本,并且错过了后退按钮 ListView 等的图标(如所附图像)。 使用具有相同 iOS 版本的 iPhone 3GS 可以正常工作

你们中有人知道解决这个问题的方法吗?

提前致谢。

这张图片显示了缺少的内容。 http://playground.appstack.io/example.png

最佳答案

您可能需要为 Retina 显示器运行媒体查询。文档:

运行媒体查询

jQuery Mobile provides a function that allows you to test whether a particular

CSS Media Query applies. Simple call $.mobile.media() and pass a media type or query. If the browser supports that type or query, and it currently applies, the function will return true. If not, it'll return false.

//test for screen media type
$.mobile.media("screen");

//test  a min-width media query
$.mobile.media("screen and (min-width: 480px)");

//test for iOS retina display
$.mobile.media("screen and (-webkit-min-device-pixel-ratio: 2)");

关于javascript - 在视网膜显示屏上使用 jquery mobile 的数据图标问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8035000/

相关文章:

iphone - 如何在我的 iOS 应用程序中获取后台运行应用程序的详细信息?

ios - 即使应用程序位于同一位置,信标的邻近范围也会来回变化

JavaScript 正则表达式,用于匹配以零次或一次出现的特定字符结尾的任何数字

javascript - 将对象中的所有键附加到 ul jquery

javascript - 需要关于ajax成功功能的建议

javascript - 防止输入引号等字符

javascript - .each() 不会推送重复的项目

iphone - 用户不活动一段时间后 WiFi 连接会断开

javascript - 在 Javascript 中将类添加到下一个同级元素

javascript - 我不太明白关于传递参数的 javascript 语法