teeup

输入框内提示默认内容,用户的点击后提示内容消失,如果填写内容为空,失去焦点后自动显示提示内容

 

<input type="text" value="搜索" onfocus="if(value==defaultValue)value=\'\'" onblur="if(!value)value=defaultValue">

分类:

技术点:

相关文章:

  • 2021-07-06
  • 2022-12-23
  • 2021-04-28
  • 2022-12-23
  • 2021-05-05
  • 2022-12-23
  • 2021-10-13
  • 2022-12-23
猜你喜欢
  • 2021-12-25
  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2021-09-21
  • 2022-12-23
相关资源
相似解决方案