1.禁止页面上下滚动
document.ontouchmove = function(e){
e.preventDefault();
}
2.使用jquery计算高度并赋值
var scrollpicwidth=(document.documentElement.clientWidth-1280)/2;
$(".lanmu").css("marginLeft",scrollpicwidth);
1.禁止页面上下滚动
document.ontouchmove = function(e){
e.preventDefault();
}
2.使用jquery计算高度并赋值
var scrollpicwidth=(document.documentElement.clientWidth-1280)/2;
$(".lanmu").css("marginLeft",scrollpicwidth);