为什么@contenteditable不能在iPhone上运行? [英] Why doesn't @contenteditable work on the iPhone?

查看:396
本文介绍了为什么@contenteditable不能在iPhone上运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Safari HTML参考:支持的属性说:


contenteditable

contenteditable

如果为true,则可以编辑元素在
上飞;如果为false,则不能。

If true, the element can be edited on the fly; if false, it cannot.

可用性

在Safari 1.2及更高版本中可用。
适用于iPhone OS 1.0及更高版本。

Available in Safari 1.2 and later. Available in iPhone OS 1.0 and later.

然而,在我的iPhone上,我无法让它工作。任何人都有这个成功吗?

However, on my iPhone, I can't get it to work. Anyone have success with this?

你可以用这个文件(诚然不是纯HTML,但该文档适用于桌面Safari,Chrome和Firefox 3)。我甚至无法在移动Safari中编辑最简单的html文档。

You can try it with this document (admittedly not pure html, but that document works in desktop Safari, and Chrome and Firefox 3). I haven't been able to get even the simplest html document to be editable in mobile Safari.

推荐答案

contenteditable 已被添加到iOS 5 beta 2中,根据来自WWDC 2011的开发者视频之一。我建议您注册Apple的 Safari开发人员计划并从中下载该视频WWDC视频页面。

contenteditable has been added to iOS 5 beta 2, according to one of the developer videos from WWDC 2011. I suggest signing up to Apple's Safari developer program and downloading that video from the WWDC videos page.

如果您注册成为Safari开发者,您还有权将您的网站提交到他们的在线iOS Web应用程序库。

If you sign up to be a Safari dev, you also gain the privilege to submit your Website to their online iOS Web app gallery.

编辑:我已经确认这可以在运行iOS 5.0.1的iPad上运行。在此尝试: http://www.quirksmode.org/dom/execCommand/

I've confirmed this works on my iPad running iOS 5.0.1. Try it out here: http://www.quirksmode.org/dom/execCommand/

这篇关于为什么@contenteditable不能在iPhone上运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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