ie,360下html锚点失效问题解决
发布时间:2016-12-27 来源:查字典编辑
摘要:$(function(){varurl=window.location.toString();varid=url.split("#")[1]...
$(function(){
var url = window.location.toString();
var id = url.split("#")[1];
if(id){
var t = $("#"+id).offset().top;
$(window).scrollTop(t);
}
});