移动端
hyb_sir
这个作者很懒,什么都没留下…
展开
-
移动端阻止用户长按,弹出保持文本,以及保存图片
css样式上的俩种方案 1.不能被选择 user-select:none; -webkit-user-select:none; -ms-user-select:none; -moz-user-select:none; 2.禁用系统默认菜单 touch-callout:none; -webkit-touch-callout:none; -ms-touch-callout:none; ...原创 2018-09-17 09:53:44 · 4855 阅读 · 2 评论 -
移动端长按事件——jquey例子
$("#target").on({ touchstart: function(e) { // 长按事件触发 timeOutEvent = setTimeout(function() { timeOutEvent = 0; alert('你长按了');...原创 2018-09-20 19:14:57 · 1623 阅读 · 1 评论