Showing
1 changed file
with
8 additions
and
5 deletions
@@ -116,8 +116,11 @@ $('.more-activity').click(function() { | @@ -116,8 +116,11 @@ $('.more-activity').click(function() { | ||
116 | }); | 116 | }); |
117 | 117 | ||
118 | // 页面(包括图片在内)全部加载完才能设置导航悬浮效果,否则位置结算会不准 | 118 | // 页面(包括图片在内)全部加载完才能设置导航悬浮效果,否则位置结算会不准 |
119 | -window.onload = function() { | ||
120 | - $categoryNav.fixNav({ | ||
121 | - autoRollTop: true | ||
122 | - }); | ||
123 | -}; | 119 | + |
120 | +if(navigator.userAgent.indexOf('UCBrowser') === -1) { | ||
121 | + window.onload = function() { | ||
122 | + $categoryNav.fixNav({ | ||
123 | + autoRollTop: true | ||
124 | + }); | ||
125 | + }; | ||
126 | +} |
-
Please register or login to post a comment