本文介绍了透明文本内不透明div的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个背景图片,顶部有一个白色的div。我想让文本里面的div是透明的,这样你可以看到通过到背景图像。
I have a background image, and a white div on top of it. I want to have text inside that div that is transparent, so that you can see "through" to the background image. Is that at all possible?
应该看起来像这样:
推荐答案
您需要在 CSS
-webkit-text-fill-color: transparent;
这篇关于透明文本内不透明div的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!