.element {
position: relative;
}
.element::before {
content: “”;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: url(targetImg.png) no-repeat;
background-size: cover; /* 可以根据需要调整背景尺寸 /
transform: scaleX(-1); / 水平翻转 /
z-index: -1; / 将伪元素放在底部,以确保不会遮挡实际内容 */
}