在safari上,用自定义按钮调用隐藏fileInput,注意点

1. event listener中,不要 return false
2. 不要使用display:none,可使用 opacity:0,height:0,width:0等
3. 调用按钮,即自定义按钮可能要添加 cursor:pointer

出处:https://stackoverflow.com/questions/32708496/safari-on-ios-9-does-not-trigger-click-event-on-hidden-input-file

相关文章:

  • 2022-12-23
  • 2021-10-03
  • 2022-12-23
  • 2021-11-26
  • 2022-12-23
  • 2022-02-17
  • 2022-01-23
猜你喜欢
  • 2021-10-27
  • 2021-11-29
  • 2021-05-16
  • 2021-09-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案