Showing
1 changed file
with
2 additions
and
1 deletions
@@ -117,7 +117,8 @@ $('.info-list .title, .one-good .reco-name').each(function() { | @@ -117,7 +117,8 @@ $('.info-list .title, .one-good .reco-name').each(function() { | ||
117 | }); | 117 | }); |
118 | 118 | ||
119 | //offset.left约等于marginLeft的值则表示介绍被换行,则清除intro的paddingTop让其更靠近头像和作者名 | 119 | //offset.left约等于marginLeft的值则表示介绍被换行,则清除intro的paddingTop让其更靠近头像和作者名 |
120 | -if ($authorIntro && (parseInt($authorIntro.offset().left, 10) === parseInt($authorIntro.css('margin-left'), 10))) { | 120 | +if ($authorIntro.offset() |
121 | + && (parseInt($authorIntro.offset().left, 10) === parseInt($authorIntro.css('margin-left'), 10))) { | ||
121 | $authorIntro.css('padding-top', 0); | 122 | $authorIntro.css('padding-top', 0); |
122 | } | 123 | } |
123 | 124 |
-
Please register or login to post a comment