鬼文本 - 如何在文本框中有淡淡的文本 [英] ghost text - how to have faint text in textbox
问题描述
我有一个在线表单:
http://yoursdproperty.com/index.php?option=com_chronocontact&Itemid=56
我想要一些模糊的灰色文本在那里,所以当用户点击它,它消失
完全像在这个StackOverflow形式,在问题的标题,它说:什么是你的编程
div>
在HTML5中,通过 placeholder
属性 - 不知道目前支持的广泛程度。
I've an online form:
http://yoursdproperty.com/index.php?option=com_chronocontact&Itemid=56
I would like to have some faint gray text there so that when the user clicks on it, it disappears
exactly like in this StackOverflow form where in the title of the question it says "what's your programming question, be descriptive?"
what is the simplest way to implement this?
In HTML5, this is achieved very easily via the placeholder
attribute - not sure how widely supported that is right now, though.
这篇关于鬼文本 - 如何在文本框中有淡淡的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!