h5页面点击事件ios没反应 移动端兼容性问题


$(document).on("click",".动态添加的dom",function(){
  console.log("11") 

})

//在ios里这里动态添加的dom点击事件不会触发,解决办法:给触发点击事件动态添加的dom增加样式,cursor:pointer  ||||||   或者增加一个touch事件

 ios input button背景色不起作用的 

input[type=button], input[type=submit], input[type=file], button { cursor: pointer; -webkit-appearance: none; }  
background改成background-color


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM