jack vor 7 Jahren
Ursprung
Commit
d83f55b64d
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      js/scrollfix.js

+ 2 - 2
js/scrollfix.js

@ -57,12 +57,12 @@
57 57
			function resetScroll() {
58 58
				setUnfixed();
59 59
				selfTop = obj.offset().top; //对象距离顶部高度
60
				selfLeft = obj.offset().left + 30; //对象距离左边宽度
60
				selfLeft = obj.offset().left; //对象距离左边宽度
61 61
				outerHeight = obj.outerHeight(); //对象高度
62 62
				outerHeight = parseFloat(outerHeight) + parseFloat(obj.css('marginBottom').replace(/auto/, 0));
63 63
				outerWidth = obj.outerWidth(); //对象外宽度
64 64
				//objWidth = obj.width();
65
				objWidth = obj.outerWidth(true)+60;
65
				objWidth = obj.outerWidth(true);
66 66
				var documentHeight = $(document).height(); //文档高度
67 67
				var startTop = $(opts.startTop), //开始浮动固定对象
68 68
					startBottom = $(opts.startBottom),