0
我建立在丹麦听写excercises系统使用和时,专为iPad。 到目前为止,我一直在GNOME测试,并且页面看起来很好,但是当我最终拿到iPad时,出现了一些问题。奇怪填充在HTML
我建立可点击句子的声音是这样的:
<audio id="audiotag6" src=diktat02/gaaet.m4a preload="auto"></audio>
<a href="javascript:play_sound('audiotag6');">The sun had <input type="text" name="word6" autocomplete="off"/> ned, </a>
<audio id="audiotag7" src=diktat02/koelig.m4a preload="auto"></audio>
<a href="javascript:play_sound('audiotag7');"> and the air was <input type="text" name="word7" autocomplete="off"/> klar, </a>
在Chrome和IE中的文字显示正常,如:
太阳有[输入框]和空气是[输入框]
但在iPad看起来像一个[标签]的每一行被插入之前 “A HREF =”:
The sun had [ input box ] and the air was [ input box ]
这是我的第一个有主页的大项目,这个问题对我来说是一个很大的挫折,因为整个想法是为了在iPad上工作 - 请帮助..
难道它是“ned”和“klar”吗?或者在你的例子中是一个错字? – Ryan
元素中的输入元素[不允许](http://www.w3.org/TR/html5/text-level-semantics.html#the-a-element)。 – Quentin