文本阴影不透明度 [英] Text shadow opacity
本文介绍了文本阴影不透明度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以只调整文本阴影的透明度,而不是文本本身?
Is it possible to adjust the opacity of just the text shadow, rather than the text itself as well?
例如,我有一个蓝色阴影的紫色文本。我想让蓝色阴影具有不透明度,而不会在紫色上丢失任何东西。
E.g I have purple text with a blue shadow. I'd like to make the blue shadow have an opacity without losing anything on the purple.
h1.blue {text-shadow: 3px 3px 0px #3f6ba9;}
推荐答案
在rgba模式中指定颜色以添加Alpha透明度。
Yes, but specify color in rgba mode to add alpha transparency.
h1.blue {text-shadow: 3px 3px 0px rgba(63,107,169, 0.5)} //half of transparency
这篇关于文本阴影不透明度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文