在chrome浏览器中:

<input type="text" value="" required>

input标签中如有required属性,如果内容为空,事件会被锁定到这个控件上。

Chrome独有的input标签中的required

相关文章:

  • 2021-12-06
  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-09
  • 2021-12-27
猜你喜欢
  • 2021-08-01
  • 2021-12-27
  • 2021-08-21
  • 2021-12-15
  • 2021-09-24
  • 2021-12-27
  • 2021-12-27
相关资源
相似解决方案