Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zwq8299174/placeholder
A jQuery plugin that enables HTML5 placeholder behavior for browsers that aren’t trying hard enough yet
https://github.com/zwq8299174/placeholder
Last synced: about 1 month ago
JSON representation
A jQuery plugin that enables HTML5 placeholder behavior for browsers that aren’t trying hard enough yet
- Host: GitHub
- URL: https://github.com/zwq8299174/placeholder
- Owner: zwq8299174
- Created: 2016-03-19T08:12:44.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-19T09:09:45.000Z (almost 9 years ago)
- Last Synced: 2024-04-14T03:45:52.895Z (9 months ago)
- Language: JavaScript
- Size: 35.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# **placeholder**
###**对不支持html5 placeholder属性的浏览器模拟placeholder属性,**
###已测试:IE6,7,8,9
###本插件通过span来模拟实现效果,placeholder字体的大小可以自定义。还有IE内核的浏览器不支持:focus的伪类也可以在API里自行设置。
* placeholder v1.0 jQuery-placeholder
* 解决IE浏览器不支持placeholder属性的问题 *
* Copyright 2014, 7*
* 请尊重原创,保留头部版权
* 在保留版权的前提下可应用于个人或商业用途用法:
1.``;
2.``;
3.`$("input").placeholder({focus:true,fontSize:'14px'});`;