From 502e4110864404ac1ad5a472aa2e918fbc0c7da8 Mon Sep 17 00:00:00 2001 From: ocean-gao Date: Fri, 22 Apr 2022 14:27:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20watermark=E8=87=AA=E5=AE=9A=E4=B9=89cont?= =?UTF-8?q?ainer=E6=97=B6=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fes-plugin-watermark/src/runtime/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/fes-plugin-watermark/src/runtime/core.js b/packages/fes-plugin-watermark/src/runtime/core.js index f927d255..2cf0472d 100644 --- a/packages/fes-plugin-watermark/src/runtime/core.js +++ b/packages/fes-plugin-watermark/src/runtime/core.js @@ -88,7 +88,7 @@ export function createWatermark({ let __wm = document.querySelector('.__wm'); const watermarkDiv = __wm || document.createElement('div'); const styleStr = ` - position: fixed; + position: ${container === document.body ? 'fixed' : 'absolute'}; user-select: none; top: 0; left: 0;