Code Monkey home page Code Monkey logo

Comments (10)

cslingjun avatar cslingjun commented on June 16, 2024 1

水印不全是因为宽度不够导致的。解决方案是宽度调大:

watermark.init({
    watermark_txt: res.data.data.userPin,
    watermark_width: 200,
});

额额额。这样处理会加载很多空白水印在页面下方吧 ,我现在是这么处理的,获取滚动下拉条事件,然后重新计算水印。能解决我目前的问题

from watermark-dom.

sunny19990108 avatar sunny19990108 commented on June 16, 2024

+1 楼主解决了吗/?

from watermark-dom.

LoveWaguan avatar LoveWaguan commented on June 16, 2024

没重新计算显示的区域

from watermark-dom.

cslingjun avatar cslingjun commented on June 16, 2024

没重新计算显示的区域

如何重新计算呀 ,大佬帮忙解决下 ?

from watermark-dom.

LoveWaguan avatar LoveWaguan commented on June 16, 2024

这块我也没有去做,大概思路就是监听dom事件,发生滚动时重新绘制;

from watermark-dom.

cslingjun avatar cslingjun commented on June 16, 2024

这块我也没有去做,大概思路就是监听dom事件,发生滚动时重新绘制;

能指导下么,我不是前端,只会些基本的

from watermark-dom.

cslingjun avatar cslingjun commented on June 16, 2024

+1 楼主解决了吗/?

没,小兄弟 解决了的话 ,同步下我哈

from watermark-dom.

webxzy avatar webxzy commented on June 16, 2024

水印不全是因为宽度不够导致的。解决方案是宽度调大:

watermark.init({
    watermark_txt: res.data.data.userPin,
    watermark_width: 200,
});

from watermark-dom.

hujunqq avatar hujunqq commented on June 16, 2024

挺离谱的,真正能用的文件是在examples目录下的watermark.js文件,而不是根目录下的,根目录下的那个js根本没法用,功能还缺失了,不知道作者忘了还是故意的。

from watermark-dom.

dw08 avatar dw08 commented on June 16, 2024

vue update的时候先删除水印再挂载即可

from watermark-dom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.