admin管理员组文章数量:1356962
I'm trying to add this code above my website on readymag. It places an image above the website that can be erased, but when I insert the code, the website doesn't scroll. I tried using pointer-events: none;, and while it allows scrolling, the eraser function doesn't work. Can someone help me?
.wrapper {
position: relative;
}
#img2 {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100vh;
object-fit: cover;
}
#img2 {
z-index: 99;
}
<div class="wrapper">
<img id="img2" src="/t/original/i/Z2283582099087810873620708068841/stelline-rettangolo.svg">
</div>
<script src=".6.0/jquery.min.js"></script>
<script src="/m/K2262565859332669963966899162601/jquery.eraser.js"></script>
<script type="text/javascript">
$('#img2').eraser({
size: 200
});
</script>
本文标签: javascriptEraserjs on ReadymagStack Overflow
版权声明:本文标题:javascript - Eraser.js on Readymag - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743976016a2570880.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论