已知的“iPad 上的 Safari"列表与“桌面 Safari"的差异; [英] List of known "Safari on iPad" differences over "Desktop Safari"

查看:23
本文介绍了已知的“iPad 上的 Safari"列表与“桌面 Safari"的差异;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近在 Windows/Mac 桌面浏览器上测试了一个 Web 应用程序 - 然后在 iPad 上,我注意到 Safari 中出现了我意想不到的各种差异.即使版本号相同.

In recently testing a web application on Windows/Mac desktop browsers - and then on an iPad I noticed various differences in Safari that I wasn't expecting. even though the version # is the same.

我想列出这些差异(供我自己和其他人使用)作为开发人员参考.

I'd like to compose a list of those differences (for myself and others) to have as a developer reference.

例如在 iPad 上的 Safari 中

  • iPad Safari 完全控制选择列表/选项样式
  • 当输入元素获得焦点时,iPad 会打开屏幕键盘,因此内嵌浮动日历小部件(等)可能无法按预期工作(或需要更改)
  • iPad Safari 不支持 position:fixed 像桌面 Safari <iOS 5
  • iPad Safari(类似于 iPhone/iPodTouch Safari)自动超链接 10 位数字以提供电话号码/联系人选项
  • iPad Safari prompt('long message...','default'); 仅显示消息的 1 行(尽管它确实提供消息的滚动
  • iPad Safari takes full control of Select list/option styling
  • iPad opens the onscreen keyboard when an input element receives focus, thus inline floating calendar widgets (and the like) may not work as expected (or need to be altered)
  • iPad Safari doesn't support position:fixed like desktop Safari < iOS 5
  • iPad Safari (similar to iPhone/iPodTouch Safari) automatically hyperlinks 10 digit numbers to offer phone #/contact options
  • iPad Safari prompt('long message...','default'); shows only 1 line of the message (though it does provide scrolling of the message

我从其他人那里听说某些 JavaScript 不起作用,等等,但我尚未对其进行全面测试,因此对于您可能遇到的任何发现,我将不胜感激.

I've heard from others that certain JavaScript doesn't work, etc. etc. but I have yet to fully test it thus I'd be grateful for any discoveries that you may have encountered.

推荐答案

还有一些给你:

  1. 无闪光
  2. 糟糕的 iFrame 支持(所以 Facebook 之类的需要为 iPad 自定义实现)
  3. 奇怪的缓存限制
  4. HTML textAreas 没有滚动条(您必须用双指滑动 - 当然,这非常直观)

总的来说.把它当作放大的 iPhone,而不是缩小的桌面.

In general. Treat it like a scaled up iPhone, not a scaled down Desktop.

这篇关于已知的“iPad 上的 Safari"列表与“桌面 Safari"的差异;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆