阻止长按图片

This commit is contained in:
kuaifan 2022-06-19 09:26:17 +08:00
parent cf0a431fff
commit 793f6152ff
2 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,8 @@
.el-avatar { .el-avatar {
> img { > img {
margin: 0 auto; margin: 0 auto;
pointer-events: none;
-webkit-touch-callout: none;
} }
} }
> em { > em {

View File

@ -356,6 +356,8 @@
> img { > img {
max-width: 100%; max-width: 100%;
max-height: 100%; max-height: 100%;
pointer-events: none;
-webkit-touch-callout: none;
} }
&:hover { &:hover {
transform: scale(1.4); transform: scale(1.4);