按住说话 #hhhh{height:40px;line-height: 40px; text-align: center; background: #f00; color:#fff;} document.getElementById('hhhh').addEventListener('touchstart', function(ev) { ev.preventDefault(); this.style.background = '#f00'; //your start record code here... }, false); document.getElementById('hhhh').addEventListener('touchend', function(ev) { ev.preventDefault(); this.style.background = '#0f0'; //your stop record code here... }, false);
查看更多关于微信按住说话HTML实现_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did108033