如果你看这个link你会看到一个 ipad 类型的文本框。
请注意标签实际上是如何位于按钮内部的。
我想知道 JQuery Mobile 中是否有类似的东西,因为我还没有看到如何做到这一点。
最佳答案
那些是 CSS place holders ,即 placeholder="Username"
,如 jQuery Mobile documentation 中所示:
<div data-role="fieldcontain" class="ui-hide-label">
<label for="username">Username:</label>
<input type="text" name="username" id="username" value=""
placeholder="Username"/>
</div>
查看 jsFiddle演示。
关于jquery - iPad 文本输入类型 - 输入中的标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11197167/