gpt4 book ai didi

javascript - IE 的文本不透明度不起作用

转载 作者:太空宇宙 更新时间:2023-11-03 22:02:50 25 4
gpt4 key购买 nike

#subNavGal {
position:relative;
width:180px;
height:30px;
top:-160px;
left:285px;
padding-top:20px;
-webkit-transition:all linear 0.2s;
-moz-transition:all linear 0.2s;
-o-transition:all linear 0.2s;
opacity:0.0;
filter:alpha(opacity = 0);
}

本应将此 div 内的文本的不透明度设置为 0 的过滤器:alpha 在文本上不起作用。关于如何使这项工作有任何想法吗?

最佳答案

您需要同时使用 filter-ms-filter 才能在所有 IE(5 及更高版本)版本上使用不透明度:

.opaque {
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; // first!
filter: alpha(opacity=50); // second!
}

参见 opacity关于PPK的详细信息

它也可能与你元素的布局有关,如果以前的 CSS 没有完成它尝试使用类似 zoom:1 的东西来检查它是否与你元素的布局有关。

关于javascript - IE 的文本不透明度不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9207043/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com