Skip to content

Commit

Permalink
全屏预览宽高样式问题
Browse files Browse the repository at this point in the history
  • Loading branch information
jinliming2 committed May 20, 2016
1 parent 222922a commit de72aae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions js/album.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,10 @@
});
image.src = _elements[index].src;
if(_elements[index].naturalWidth / _elements[index].naturalHeight >= border) {
image.classList.remove("AlbumFullScreenImageHeight");
image.classList.add("AlbumFullScreenImageWidth");
} else {
image.classList.remove("AlbumFullScreenImageWidth");
image.classList.add("AlbumFullScreenImageHeight");
}
//显示缩略图
Expand Down
Loading

0 comments on commit de72aae

Please sign in to comment.