Commit 5830ce40 by 林翔

lx

parent 5062e9e2
Showing with 3 additions and 8 deletions
......@@ -44,10 +44,7 @@ var xinhot = {
// var top = $(".product-mask-content").offset().top; //获取某个元素距顶部的距离
// $("body,html").animate({scrollTop:(top-50)+"px"},500);
$("body,html").css({"overflow":"hidden"});
$(".container").bind("touchmove",function(e){
e.prevenDefault();
});
$("body,html").css({"position":"fixed"},{"top":"0"});
$.ajax({
url:'./json/brandData.json',
......@@ -78,10 +75,7 @@ var xinhot = {
// var top = $(".contact-mask-content").offset().top; //获取某个元素距顶部的距离
// $("body,html").animate({scrollTop:(top-50)+"px"},500);
$("body,html").css({"overflow":"hidden"});
$(".container").bind("touchmove",function(e){
e.prevenDefault();
});
$("body,html").css({"position":"fixed"},{"top":"0"});
$.ajax({
url:'./json/jobData.json',
......@@ -102,6 +96,7 @@ var xinhot = {
$(".mask-close").click(function(){
$(this).parents(".mask").hide();
$("body,html").css({"overflow":"auto"});
$("body,html").css({"position":"relative"},{"top":"auto"});
});
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment