在所有主要浏览器上使用CSS的不可见(透明)字体颜色 [英] Invisible (transparent) font color with css on all major browsers
本文介绍了在所有主要浏览器上使用CSS的不可见(透明)字体颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用黑色或白色之类的颜色时,是否可以使字体(字体颜色)透明?只是让字体慢慢消失,例如 display:none
。谢谢
Is it possible to make the font (font-color) transparent while using any color like black or white? Just have the font slowly disappear, like display:none
. Thanks
推荐答案
您可以使用CSS属性
opacity: 0;
您将无法选择文本,
或
color: transparent;
,您将有机会选择文本。
and you will have the chance to select the text.
如果要让它慢慢看一下jQuery函数 .fadeOut()
http://api.jquery.com/fadeOut/ 或 .animate()
http://api.jquery.com/animate/
If you want to make this slowly look at jQuery functions .fadeOut()
http://api.jquery.com/fadeOut/ or .animate()
http://api.jquery.com/animate/
这篇关于在所有主要浏览器上使用CSS的不可见(透明)字体颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文