placeholder:IE5.5~9 的 polyfill 不支持占位符功能

时间:2024-07-11 10:05:49
【文件属性】:

文件名称:placeholder:IE5.5~9 的 polyfill 不支持占位符功能

文件大小:4KB

文件格式:ZIP

更新时间:2024-07-11 10:05:49

JavaScript

占位符 v1.0 IE5.5~9 的 polyfill 不支持占位符功能v1.0支持input[type="text"]的占位符特性。 全局设置placeholder.attr :指定占位符特性名称,默认为数据占位符placeholder.color :指定占位符的文字前景色,默认为#888 用法: <html> <head></head> <body> <form> <input type="text" placeholder="type your name pls."/> <input type="text" placeholder="type your number pls."/> <textarea placeholder="type detail pls."></textarea> </form> <!--[if lte IE 9]>


【文件预览】:
placeholder-master
----README.md(1KB)
----polyfill_placeholder.js(6KB)
----test.html(612B)

网友评论