摘要: HTML5的placeholder属性无非只是一个补缺的功能。那些IE9-都要使用JS去模拟,网上也有不少插件,但是发现在IE中,这些版本都有一些问题。无意中到了一个JQ写的,没有写成插件,反正考虑到了这一点。$(document).ready(function(){// var supportPlaceholder = 'placeholder' in document.createElement('input');if(!Modernizr.input.placeholder){ //这里不使用Modernizr可以使用原生写法//if(!supportPl 阅读全文
posted @ 2012-11-21 11:46 e.e.p 阅读(236) 评论(0) 推荐(0) 编辑