Skip to content

Commit

Permalink
fix!: add watermark style top,left value 0
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohe0601 committed Sep 20, 2024
1 parent 61bd91c commit 68e6bf0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/watermark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down

0 comments on commit 68e6bf0

Please sign in to comment.