浏览代码

fix(watermark): watermark causes a blank bar (#297)

HelKim 4 年之前
父节点
当前提交
66fc1b7845
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/hooks/web/useWatermark.ts

+ 1 - 1
src/hooks/web/useWatermark.ts

@@ -33,7 +33,7 @@ export function useWatermark(appendEl: Ref<HTMLElement | null> = ref(document.bo
     const div = document.createElement('div');
     div.id = id;
     div.style.pointerEvents = 'none';
-    div.style.top = '3px';
+    div.style.top = '0px';
     div.style.left = '0px';
     div.style.position = 'absolute';
     div.style.zIndex = '100000';