如何在用户输入时保持输入占位符可见 [英] How to keep input placeholder visible when user is typing

查看:138
本文介绍了如何在用户输入时保持输入占位符可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个新的和有趣的要求。

I have a new and intriguing requirement. Instead of the placeholder disappearing when the user starts typing, it should remain visible and shift over to the right hand side of the input box.

在用户开始输入时,占位符消失,而不是在用户开始输入时消失。

Is this even possible with a standard HTML placeholder? How might I achieve this?

感谢

推荐答案

t认为您只能使用标准占位符,但您可以使用此示例 http://css-plus.com/2011/09/make-the-input-placeholder-user-friendly/

I don't think that you can do it ONLY with standard placeholders, but you can use this example http://css-plus.com/2011/09/make-the-input-placeholder-user-friendly/

这篇关于如何在用户输入时保持输入占位符可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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