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 += ''; } }