【问题标题】:IPad text input types - labels in inputIPad 文本输入类型 - 输入中的标签
【发布时间】:2012-06-27 04:06:00
【问题描述】:

如果您查看此link,您会看到 ipad 类型的文本框。
注意标签实际上是如何在按钮内部的。
我想知道 JQuery Mobile 中是否有类似的东西,因为我还没有看到如何做到这一点。

【问题讨论】:

标签: jquery html css jquery-mobile textinput


【解决方案1】:

那些是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 演示。

【讨论】:

    【解决方案2】:

    使用jquery移动列表视图;

    查看以下链接

    http://jquerymobile.com/test/docs/lists/lists-forms-inset.html
    

    【讨论】:

    • 请注意,不鼓励仅链接的答案,因此答案应该是搜索解决方案的终点(相对于另一个参考中途停留,随着时间的推移往往会变得陈旧)。请考虑在此处添加独立的概要,并保留链接作为参考。
    猜你喜欢
    • 1970-01-01
    • 2015-10-21
    • 1970-01-01
    • 2012-07-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-03-14
    相关资源
    最近更新 更多