color:transparent在Internet Explorer中不工作 [英] color: transparent is not working in Internet Explorer

查看:147
本文介绍了color:transparent在Internet Explorer中不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

color:transparent 在Firefox中正常工作,但在Internet Explorer中无法正常工作。还可以使用什么来使字体颜色透明?

color: transparent is working in Firefox, but it's not working in Internet Explorer. What else I can use to make the font color transparent?

推荐答案

根据 CSS spec color属性没有定义透明值,因此IE行为是正确的。如果您想拥有不可见元素,请使用visibility:hidden。

According to CSS spec the color property doesn't have transparent value defined, so IE behavior is correct. If you want to have invisible element, use visibility: hidden.

这篇关于color:transparent在Internet Explorer中不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆