IE中的占位符 [英] Placeholders in IE
本文介绍了IE中的占位符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用此脚本: http:// www.morethannothing.co.uk/wp-content/uploads/2010/01/placeholder.js 让一些占位符进入IE浏览器。对输入类型的文本和密码起作用。
I am using this script : http://www.morethannothing.co.uk/wp-content/uploads/2010/01/placeholder.js to get some placeholders into IE. Works a treat for input types of text and password.
但似乎没有加载文本区域。有没有人知道我可以添加的一行代码,或者可能会执行一些jQuery或JavaScript来加载它。
But just does'nt seem to load for Text Areas. Does anyone know of a line of code I could add to that, or maybes a little bit of jQuery or JavaScript to execute to get it to load.
提前致谢。
推荐答案
而不是 $(':text [placeholder],:password [placeholder]')
使用 $(':text [placeholder],:password [placeholder],textarea [placeholder]')
这篇关于IE中的占位符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文