您好,欢迎光临可得眼镜网![免费注册]
全部商品分类
SQ15QF9
SQ25NC9
SQ60DK9
               
document.getElementsByTagName //锚点跳转滑动效果 $('a[href*=#],area[href*=#]').click(function () { if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) { var $target = $(this.hash); $target = $target.length && $target || $('[name=' + this.hash.slice(1) + ']'); if ($target.length) { var targetOffset = $target.offset().top - 30; $('html,body').animate({ scrollTop: targetOffset }, 1000); return false; } } }); });
SQ15QF9
SQ25NC9
SQ60DK9