Browse Source

【火狐浏览器】在浏览专家信息里点[专家信息导航条]右侧没有滚动至相应位置解决

jack 8 years ago
parent
commit
761b1ac2c4
2 changed files with 3 additions and 4 deletions
  1. 2 3
      js/information.brow.js
  2. 1 1
      js/information.js

+ 2 - 3
js/information.brow.js

@ -551,9 +551,8 @@ $(".subsidebar").click(function(){
551 551
$(".subsidebar").click(function(){
552 552
	var index=$(".subsidebar").index(this);
553 553
	var offset=$(".introduction").eq(index).offset();
554
555
		$("body").animate({ 
556
			scrollTop:offset.top-80 //��body��scrollTop����pos��top����ʵ���˹��� 
554
		$("body,html").animate({ 
555
			scrollTop:offset.top-80+"px" //��body��scrollTop����pos��top����ʵ���˹��� 
557 556
			},1000); 
558 557
		 
559 558
		 })

+ 1 - 1
js/information.js

@ -897,7 +897,7 @@ $(".subsidebar").click(function(){
897 897
	var index=$(".subsidebar").index(this);
898 898
	var offset=$(".introduction").eq(index).offset();
899 899

900
		$("body").animate({ 
900
		$("body,html").animate({ 
901 901
			scrollTop:offset.top-80 //��body��scrollTop����pos��top����ʵ���˹��� 
902 902
			},1000); 
903 903