<div class="box">一只猪</div>
css:
:root {
font-size: 100px;
}
.box {
color: red;
/* 文本的填充颜色 transparent透明色 */
-webkit-text-fill-color: orange;
}
代码演示:

选中后文字是透明的:

<div class="box">一只猪</div>
css:
:root {
font-size: 100px;
}
.box {
color: red;
/* 文本的填充颜色 transparent透明色 */
-webkit-text-fill-color: orange;
}
代码演示:

选中后文字是透明的:

评论区