From 0cbefa13479a1d89a6a4812bba3cfe9d9976168a Mon Sep 17 00:00:00 2001 From: yaojn Date: Fri, 13 Jun 2025 14:46:48 +0800 Subject: [PATCH] =?UTF-8?q?-=20[=E4=BF=AE=E5=A4=8D]=E7=A0=94=E5=8F=91?= =?UTF-8?q?=E7=AE=A1=E7=90=86-=E6=9F=A5=E7=9C=8B=E5=9B=BE=E7=89=87?= =?UTF-8?q?=EF=BC=8C=E5=9B=BE=E7=89=87=E4=B8=8D=E5=AE=8C=E6=95=B4=20=20=20?= =?UTF-8?q?=20-=20[=E5=85=B3=E8=81=94]#[1442662815596544]=E7=A0=94?= =?UTF-8?q?=E5=8F=91=E7=AE=A1=E7=90=86-=E6=9F=A5=E7=9C=8B=E5=9B=BE?= =?UTF-8?q?=E7=89=87=EF=BC=8C=E5=9B=BE=E7=89=87=E4=B8=8D=E5=AE=8C=E6=95=B4?= =?UTF-8?q?=20http://192.168.0.96:8090/demo/rdm.html#/bug-detail/939050947?= =?UTF-8?q?543040/939050947543057/1442662815596544?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/resources/directives/img-viewer.less | 27 ++++++++++++------------ 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/resources/directives/img-viewer.less b/src/resources/directives/img-viewer.less index 393b3870..c56afd0f 100644 --- a/src/resources/directives/img-viewer.less +++ b/src/resources/directives/img-viewer.less @@ -1,51 +1,52 @@ -.carosel-img{ +.carosel-img { position: fixed; width: 100%; height: 100%; z-index: 200; top: 0; left: 0; - .img-tool{ + .img-tool { position: absolute; top: 0; opacity: 0.8; font-size: 18px; width: 100%; - .img-btn{ + .img-btn { float: right; padding: 3px 16px; cursor: pointer; - .tsfont-close{ + .tsfont-close { padding: 10px 0px; - } } } - .demo-carousel{ + .demo-carousel { text-align: center; + width: 100%; // 解决预览时,图片显示不完整问题 + height: 100%; position: relative; top: 50%; transform: translate(0, -50%); - img{ + img { user-select: none; max-width: 90%; max-height: 100%; cursor: zoom-in; - &[isMax='1']{ + &[isMax='1'] { cursor: zoom-out; } } } - .ivu-carousel-arrow>*{ + .ivu-carousel-arrow > * { font-size: 25px; vertical-align: middle; } } -.img-viewer{ - img{ - cursor:zoom-in; +.img-viewer { + img { + cursor: zoom-in; } .image > img { max-width: 100%; } -} \ No newline at end of file +} -- Gitee