好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

微信按住说话HTML实现_html/css_WEB-ITnose

直接看代码来得快:


  按住说话          #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的详细内容...

  阅读:40次