【问题标题】:Hiding Text in ie7在ie7中隐藏文本
【发布时间】:2010-06-03 08:52:15
【问题描述】:

所以我有这个由 javascript 插件生成的文本。

<a class="className">Text</a> 

a.className {
background: url(images/a-image.png) no-repeat;
}

但是“文本”显示在图像顶部... 现在...对于任何受人尊敬的网络浏览器,我都可以使用color: rgba(0,0,0,0); 来解决问题,但是 IE7 不遵守任何类型的标准。

有什么想法吗?

【问题讨论】:

    标签: javascript html css


    【解决方案1】:
    color:transparent;
    

    text-indent:-9999px;
    

    font-size:0px;
    

    【讨论】:

    • 我觉得ie7不支持color:transparent;
    • 那又怎样?只需使用 text-indent:-9999px;或字体大小:0px;那么。
    猜你喜欢
    • 2011-03-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-04-30
    • 2021-10-07
    • 2010-12-20
    • 2015-10-27
    • 2011-01-11
    相关资源
    最近更新 更多