您的位置:首页 > 房产 > 家装 > 天河区门户网站招生考试_商城官方平台入口_seo软文代写_网站制作代码

天河区门户网站招生考试_商城官方平台入口_seo软文代写_网站制作代码

2025/3/11 4:23:58 来源:https://blog.csdn.net/zmyalh/article/details/145702137  浏览:    关键词:天河区门户网站招生考试_商城官方平台入口_seo软文代写_网站制作代码
天河区门户网站招生考试_商城官方平台入口_seo软文代写_网站制作代码

调试工具

https://yoksel.github.io/svg-gradient-map/#/
//通过svg调试工具,上传图片,然后调试滤镜,调试完成后,把右侧的代码复制出来,进行文章下一步操作

在这里插入图片描述
项目使用

   <svg id="svgfilters" aria-hidden="true" style="position: absolute; width: 0; height: 0; overflow: hidden;" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><!-- 把调试好的代码贴再此处,这里可以写多个,注意id是唯一的,需要再样式中调用--><!-- <filter id="teal-white" x="-10%" y="-10%" width="120%" height="120%" filterUnits="objectBoundingBox" primitiveUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feColorMatrix type="matrix" values="0 0 1 0 00 0 1 0 00 0 1 0 00 0 0 1 0" in="SourceGraphic" result="colormatrix"/><feComponentTransfer in="colormatrix" result="componentTransfer"><feFuncR type="table" tableValues="1 0.11 0 0"/><feFuncG type="table" tableValues="0 0.73 0.37 0"/><feFuncB type="table" tableValues="0 0.89 0.74 0"/><feFuncA type="table" tableValues="0 1"/></feComponentTransfer><feBlend mode="normal" in="componentTransfer" in2="SourceGraphic" result="blend"/></filter> --><filter id="teal-white" x="-10%" y="-10%" width="120%" height="120%" filterUnits="objectBoundingBox" primitiveUnits="userSpaceOnUse" color-interpolation-filters="linearRGB"><feColorMatrix type="matrix" values="1 0 0 0 01 0 0 0 01 0 0 0 00 0 0 1 0" in="SourceGraphic" result="colormatrix"/><feComponentTransfer in="colormatrix" result="componentTransfer"><feFuncR type="table" tableValues="0 0 1"/><feFuncG type="table" tableValues="0.12 0.2 1"/><feFuncB type="table" tableValues="1 1 1"/><feFuncA type="table" tableValues="0 1"/></feComponentTransfer><feBlend mode="normal" in="componentTransfer" in2="SourceGraphic" result="blend"/></filter><!-- <filter id="teal-white" x="-10%" y="-10%" width="120%" height="120%" filterUnits="objectBoundingBox" primitiveUnits="userSpaceOnUse" color-interpolation-filters="linearRGB"><feColorMatrix type="matrix" values="0 1 0 0 00 1 0 0 00 1 0 0 00 0 0 1 0" in="SourceGraphic" result="colormatrix"/><feComponentTransfer in="colormatrix" result="componentTransfer"><feFuncR type="table" tableValues="0 0 1 0.44"/><feFuncG type="table" tableValues="0.16 0.2 1 0.61"/><feFuncB type="table" tableValues="1 1 1 1"/><feFuncA type="table" tableValues="0 1"/></feComponentTransfer><feBlend mode="normal" in="componentTransfer" in2="SourceGraphic" result="blend"/></filter> --></defs></svg> <!--   需要使用的div --><div id="map" class="mapmode"></div><!-- 使用svg滤镜,通过css添加滤镜到div上 -->
.mapmode{width: 100%;height: 100%;filter:url('#teal-white') //添加在mapmode元素上 ,使用的是id为teal-white的滤镜,这个可以根据自己的需要应用//::v-deep(.leaflet-layer .leaflet-tile-container img){// filter:url('#teal-white') //}}

使用前
在这里插入图片描述
使用后
在这里插入图片描述

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com