在做移动端开发时,由于版面有限往往不能在页面上展示搜索按钮,这时键盘的搜索按钮就显得尤为的方面快捷,实际上实现这个功能也是 so easy!

 紧紧需要两步

1、form  表单

2、type = "search"

<form action="">
    <input type="search">
</form>

//在 android 上不加form表单也是可以的,但是在ios上测试是不通过的

有木有so easy ~~

相关文章:

  • 2021-09-30
  • 2022-12-23
  • 2022-12-23
  • 2021-09-18
  • 2021-05-08
  • 2022-01-29
  • 2021-05-12
猜你喜欢
  • 2021-06-16
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
  • 2021-08-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案