value="你的提示文字" onFocus="if(value==defaultValue){value=\'\';this.style.color=\'#000\'}"
onBlur="if(!value){value=defaultValue;this.style.color=\'#999\'}" style="color:#999999"
无法使用placeholder的情况下(html5之前的版本)
value="你的提示文字" onFocus="if(value==defaultValue){value=\'\';this.style.color=\'#000\'}"
onBlur="if(!value){value=defaultValue;this.style.color=\'#999\'}" style="color:#999999"
无法使用placeholder的情况下(html5之前的版本)
相关文章: