【HTML5】input的placeholder属性

归去

今天在adobe air html的项目里用到了需要在input标签上增加占位文字的功能,想起来了之前公司里有人分享了html5的这个新特性。 这个是input新增的标签,叫做placeholder,预览和代码如下(当然,你要用支持html5的浏览器。):