Showing
1 changed file
with
1 additions
and
1 deletions
@@ -205,7 +205,7 @@ define('yohood', function(require, exports) { | @@ -205,7 +205,7 @@ define('yohood', function(require, exports) { | ||
205 | setFlowLayout(); | 205 | setFlowLayout(); |
206 | 206 | ||
207 | //ipad处理share位置 | 207 | //ipad处理share位置 |
208 | - if (/(iPad)/i.test(navigator.userAgent)) { | 208 | + if (navigator.userAgent.indexOf('iPad') !== -1) { |
209 | $('.wrapper').width(960); | 209 | $('.wrapper').width(960); |
210 | $('.share').css('marginLeft', '-516px'); | 210 | $('.share').css('marginLeft', '-516px'); |
211 | } | 211 | } |
-
Please register or login to post a comment