From 821de03d8a17a5f739ae42aa219bfdf1b0b9cc03 Mon Sep 17 00:00:00 2001 From: Jack Date: Tue, 2 Aug 2022 14:36:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=20layer.photo=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E2=80=9C=E6=9F=A5=E7=9C=8B=E5=8E=9F=E5=9B=BE=E2=80=9D=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/css/modules/layer/default/layer.css | 3 ++- src/modules/layer.js | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/css/modules/layer/default/layer.css b/src/css/modules/layer/default/layer.css index 54a6aeee..75b23654 100644 --- a/src/css/modules/layer/default/layer.css +++ b/src/css/modules/layer/default/layer.css @@ -157,7 +157,8 @@ html #layuicss-layer{display: none; position: absolute; width: 1989px;} .layui-layer-imgtit *{display:inline-block; *display:inline; *zoom:1; vertical-align:top; font-size:12px;} .layui-layer-imgtit a{max-width:65%; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; color:#fff;} .layui-layer-imgtit a:hover{color:#fff; text-decoration:underline;} -.layui-layer-imgtit em{padding-left:10px; font-style: normal;} +.layui-layer-imgtit em{padding:0 10px; font-style: normal;} +.layui-layer-imgtit>span+a{margin-left: 10px;} /* 关闭动画 */ @-webkit-keyframes layer-bounceOut { diff --git a/src/modules/layer.js b/src/modules/layer.js index 4f0cba9b..75d98993 100644 --- a/src/modules/layer.js +++ b/src/modules/layer.js @@ -1327,20 +1327,20 @@ layer.photos = function(options, loop, key){ tip += ''; if(alt===''){ - tip += '
'+ dict.imgIndex +' / '+ data.length +'
'; + tip += '
'+ dict.imgIndex +' / '+ data.length +'查看原图
'; } else{ - tip += '
'+ alt +''+ dict.imgIndex +' / '+ data.length +'
'; + tip += '
'+ alt +''+ dict.imgIndex +' / '+ data.length +'查看原图
'; } tip += ''; } else if(data.length === 1){ if(alt===''){ - tip = ''; + tip = '
查看原图
'; } else{ - tip += '
'+ alt +'
'; + tip += '
'+ alt +'查看原图
'; tip += ''; } }