From 68e6bf0e2dfadc1ac1a189b264b8a9fcc272bd2d Mon Sep 17 00:00:00 2001 From: xiaohe0601 Date: Fri, 20 Sep 2024 16:32:25 +0800 Subject: [PATCH] fix!: add watermark style top,left value 0 --- src/watermark.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/watermark.ts b/src/watermark.ts index 56168de..ed2e150 100644 --- a/src/watermark.ts +++ b/src/watermark.ts @@ -113,6 +113,8 @@ export class Watermark { el.id = this._options.el; el.style.position = "absolute"; + el.style.top = "0"; + el.style.left = "0"; el.style.zIndex = `${this._options.zIndex}`; el.style.pointerEvents = "none";