跳转页面自动滑动到指定 锚点
<script>
$(function () {
var url = window.location.href;
if(url.indexOf('#')>=0){
var hrefid = url.substr(url.indexOf('#')+1,url.length);
if(hrefid!=''){
$('html,body').animate({ scrollTop: $("#"+hrefid).offset().top - 100 },500);
}
}
});
</script>