本文介绍了CSS,带有不透明背景的透明文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以仅使用css在彩色背景上书写透明文本(如下图所示)?
is it possible to write transparent text over a colored background, like on the image below, with css only ?
谢谢
推荐答案
否.
因为后面仍然有白色背景,所以必须在文本下方剪切图层.
Cause there is still a white background behind, you have to cut the layer under the text.
我认为最好的解决方案是使用图像.
Best solution is using an image, i think.
这篇关于CSS,带有不透明背景的透明文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!