An HTML5 placeholder attribute analog.
sPlaceholder 是一个模拟 HTML5 中的 placeholder 属性的 JS 库, 通过它可以实现更加灵活的占位符特性。
详细文档:http://biossun.org/sPlaceholder/
如果你使用 bower,可以执行如下命令来安装 sPlaceholder:
$ bower install splaceholder --save
<input type="text" placeholder="Your name" />
或者:
<div class="placeholder-box">
<input type="text" value="" />
<span class="placeholder-text">Your name</span>
</div>