我有以下代码,
gallery.css("transition-duration", duration + "ms");
gallery.css("-webkit-transition-duration", duration + "ms");
gallery.css("-moz-transition-duration", duration + "ms");
gallery.css("-ms-transition-duration", duration + "ms");
gallery.css("-o-transition-duration", duration + "ms");
//inverse the number we set in the css
var value = (distance < 0 ? "" : "-") + Math.abs(distance).toString();
gallery.css("transform", "translate3d(" + value + "px,0,0)");
gallery.css("-webkit-transform", "translate3d(" + value + "px,0,0)");
gallery.css("-moz-transform", "translate3d(" + value + "px,0,0)");
gallery.css("-ms-transform", "translate3d(" + value + "px,0,0)");
gallery.css("-o-transform", "translate3d(" + value + "px,0,0)");
它在 chrome、andriod、Iphone 中工作得更好。但在 IE 10(在移动设备上)上不起作用,Firefox 部分工作。有什么方法可以在 Javascript/Jquery 中解决这个问题?
更新:我想我得到了主要问题。主要问题是触摸事件(touchstart、touchend、touchmove)在 IE 10 移动版中不起作用。我使用了IE 10 指针,这对我来说非常有用。感谢大家。