springboot怎么把数据传给前端:springboot 如何引入前端 bootstrap?
这种问题网上一搜一大堆,你可以具体找一篇文章试试,遇到问题可以针对相关问题去提问。springboot通过jar包方式引入bootstrap_个人文章 - SegmentFault 思否 这不是查查就
顺晟科技
2022-10-18 12:14:47
110
我的问题是我怎样才能把一个图像与滤镜:模糊,为以后,改变一个DIV的光标,并隐藏它与光标:无;使用背景过滤器,您可以“删除”模糊,能够通过在图像上传递DIV来锐化图像。PS:";悬停不起作用,因为仅仅通过传递一点图像就已经受到整个属性的影响,这就是为什么我必须使用背景过滤器";
我的代码:
const cursor = document.querySelector('.cursor');
document.addEventListener('mousemove', e => {
cursor.setAttribute("style", "top: " + (e.pageY - 50) + "px; left: " + (e.pageX - 50) + "px;");
})
<代码>*{保证金:0;填充:0;框大小:border-box;光标:无;}.光标{宽度:7em;身高:7em;边框:3px纯白色;边界半径:100%;位置:绝对;/*como no se puede poner un blur negativo,intente resetearlo cambiando el-5 por un 0,pero tampoco funciono*/背景滤镜:模糊(-5px);-webkit-backdrop-filter:模糊(-5px);}.peces IMG{高度:15VH;滤镜:模糊(5px);}
<代码><;HTML(>;)<;头部>;<;元字符集=“ UTF-8 ”>;<;meta name=“ viewport ” content=“ width=device-width ”>;<;标题>;Repl.it<;/title>;<;链接href=“ style.CSS ” rel=“ stylesheet ” type=“ text/CSS ”/>;<;/标题>;<;身体>;<;DIV CLASS=“ PECES ” ID=“ UNO ”>;<;IMG SRC=“ images/01.PNG ”>;<;/DIV>;<;DIV CLASS=“ PECES ” ID=“ DOS ”>;<;IMG SRC=“ images/02.PNG ”>;<;/DIV>;<;DIV类=“ peces ” ID=“ tres ”>;<;IMG SRC=“ images/03.PNG ”>;<;/DIV>;<;DIV类=“ peces ” ID=“ cuatro ”>;<;IMG SRC=“ images/03.PNG ”>;<;/DIV>;<;DIV类=“光标”>;<;/DIV>;<;script SRC=“ script.JS ”>;<;/script>;<;/正文>;<;/HTML>;
谢谢你的回答=)
顺晟科技:
你需要使用SVG来做这件事。不幸的是,我不知道是否有更好的方法。
* {
margin: 0;
padding: 0;
box-sizing: border-box;
cursor: none;
}
.cursor {
width: 7em;
height: 7em;
border: 3px solid white;
border-radius: 100%;
position: absolute;
/*Como no se puede poner un blur negativo, intente resetearlo cambiando el -5 por un 0, pero tampoco funciono*/
backdrop-filter: blur(-5px);
-webkit-backdrop-filter: blur(-5px);
}
.peces img {
height: 15vh;
filter: blur(5px);
}
<代码>.pic{高度:600px;}.模糊{高度:100%;}.覆盖{位置:绝对;顶部:0px;左:0px;高度:100%;}SVG图像{宽度:350px}
<代码><;script SRC=“ https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js ”>;<;/script>;<;DIV类=“ pic ”>;<;SVG CLASS=“模糊” xmlns=“ http://www.w3.org/2000/svg ” xmlns:XLink=“ http://www.w3.org/1999/xlink ” width=“ 100%”>;<;image filter=“ URL(#filter2)” XLink:href=“ https://i.imgur.com/ejojimc_d.webp?maxwidth=760&fidelity=grand ”>;<;/image>;<;过滤器ID=“过滤器2 ”>;<;fegaussianblur stddeviation=“ 5 ”/>;<;/筛选>;<;掩码ID=“ mask1 ”>;<;圆圈cx=“-50%” cy=“-50%” R=“ 80 ” fill=“ white ” filter=“ URL(#filter2)”/>;<;/掩码>;<;图像XLink:href=“ https://i.imgur.com/ejojimc_d.webp?maxwidth=760&fidelity=grand ” mask=“ URL(#mask1)”>;<;/image>;<;/SVG>;<;/DIV>;
05
2022-12
02
2022-12
02
2022-12
29
2022-11
29
2022-11
24
2022-11