当前位置: 首页> 汽车> 维修 > 公司网站制作哪个公司好_加强专业建设的主要举措_佣金高的推广平台_东莞seo网站排名优化公司

公司网站制作哪个公司好_加强专业建设的主要举措_佣金高的推广平台_东莞seo网站排名优化公司

时间:2025/7/8 20:26:12来源:https://blog.csdn.net/qq_43987527/article/details/148749344 浏览次数: 0次
公司网站制作哪个公司好_加强专业建设的主要举措_佣金高的推广平台_东莞seo网站排名优化公司

直接上代码

把图片作为水印

<div class="info-warp"><div class="image-container"><img src="https://img.shetu66.com/2023/06/28/1687920981963810.png" /><div class="watermark-layer"><imgv-for="(pos, idx) in watermarkPositions":key="idx":src="watermarkImg":style="{left: pos.x + 'px',top: pos.y + 'px',opacity: 0.4,width: watermarkWidth + 'px',height: 'auto',position: 'absolute',transform: 'rotate(-20deg)',pointerEvents: 'none',}"/></div></div></div>
computed: {watermarkPositions() {const containerW = 800;const containerH = 1492; // info-warp高度const arr = [];for (let y = 0; y < containerH; y += this.watermarkHeight + this.watermarkGapY) {for (let x = 0; x < containerW; x += this.watermarkWidth + this.watermarkGapX) {arr.push({ x, y });}}return arr;},},// 水印watermarkImg:'https://images.pexels.com/photos/6131296/pexels-photo-6131296.jpeg?cs=srgb&dl=pexels-quang-nguyen-vinh-6131296.jpg&fm=jpg',watermarkGapX: 60, // 横向间距watermarkGapY: 60, // 纵向间距watermarkWidth: 120, // logo宽度watermarkHeight: 43, // logo高度(按实际比例)<style lang="scss" scoped>
.info-warp {width: 800px;height: 1492px;.image-container {position: relative;width: 100%;height: 90%;overflow: hidden;img {width: 100%;height: 100%;border-radius: 12px;box-shadow: 0px 5.07px 38.05px 0px rgba(0, 0, 0, 0.3);}.watermark-layer {position: absolute;top: 0;left: 0;width: 100%;height: 100%;pointer-events: none;z-index: 1;}}
}
</style>

替换掉里面的示例图片即可

关键字:公司网站制作哪个公司好_加强专业建设的主要举措_佣金高的推广平台_东莞seo网站排名优化公司

版权声明:

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

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

责任编辑: