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

 

input placeholder默认基线没对齐,偏上一点,给其父元素设置line-height:1即可

posted @ 2018-08-17 10:44  红苹果学园  阅读(9476)  评论(0编辑  收藏  举报