diff --git a/p/index.html b/p/index.html
index 074018f..90cbdf3 100644
--- a/p/index.html
+++ b/p/index.html
@@ -11,7 +11,7 @@
#tools div{padding-bottom:5px}
#imgs{margin-top:70px;padding:5px 0 0 5px}
img{margin-top:15px;background-color:#efefef;}
- img:first-child{margin-top:0}
+ img:first-child, img.hidden{margin-top:0}
.mobile #tools{top:auto;bottom:0}
.mobile #imgs{margin-top:0;padding-bottom:72px}
diff --git a/p/index.js b/p/index.js
index 2473458..bf815d9 100644
--- a/p/index.js
+++ b/p/index.js
@@ -127,7 +127,7 @@ function clearPid () {
function showImg (img) {
img.title = `${img.id} ${img.naturalWidth}✖️${img.naturalHeight}`;
-
+ img.classList.remove("hidden");
if (400 / img.naturalHeight * img.naturalWidth > windowWidth) {
// 宽度超过页面时,缩小显示
img.style.width = windowWidth + "px";
@@ -166,6 +166,7 @@ function createImage (pid, n) {
} else {
img.style.width = "0px";
img.style.height = "0px";
+ img.classList.add("hidden");
}
img.style.cursor = 'pointer';
img.style.display = 'block';