Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

水印可以被隐藏 #29

Closed
maqingbo opened this issue Aug 21, 2019 · 4 comments
Closed

水印可以被隐藏 #29

maqingbo opened this issue Aug 21, 2019 · 4 comments

Comments

@maqingbo
Copy link

生成的水印都带有一个 id,虽然不能在元素本身上修改样式,但因为这个 id,就可以另外写新样式,然后水印会消失。

watermark-dom

@saucxs
Copy link
Owner

saucxs commented Aug 21, 2019

道高一尺魔高一丈

@maqingbo
Copy link
Author

@saucxs 你好,控制台里面添加的 css 属性属于外联样式,是不是可以在初始化时将常见的可以隐藏元素的 css 方法写成内联样式,这样即使新增也没用。

@inooNgt
Copy link

inooNgt commented Sep 3, 2019

@saucxs 你好, http://www.chengxinsong.cn/post/34 里的水印动态变化的dom结构是通过设一个定时器然后不停的调用init和remove方法完成吗?有相关代码吗

@saucxs
Copy link
Owner

saucxs commented Nov 1, 2019

@inooNgt 定时器进行不断load方法就行。一次只操作一次dom结构。代码事例可以参考examples文件里的examples-setInterval的例子。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants