【发布时间】:2014-01-28 04:00:21
【问题描述】:
我知道 rgba 不能在 ie8 浏览器中工作。我该如何解决这个问题。
请参考下面的html
<html>
<head>
<style type="text/css">
body
{
background-color:black;
}
.navitem
{
color:red;
}
.navitem:hover
{
background: rgba(255, 255, 255, 0.3); /* browsers */
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#4cffffff', endColorstr='#4cffffff'); /* IE */
}
</style>
</head>
<body>
<a class="navitem">Hot Alerts</a>
</body>
</html>
我用谷歌搜索并在下面的链接中找到了解决方案,我尝试使用该解决方案但仍然无法正常工作。我该如何解决这个确切的问题。
我提到的以下链接。
CSS background opacity with rgba not working in IE 8
谢谢,
湿婆
【问题讨论】:
-
在 IE 中没有任何作用,你为什么在乎?
-
没有解决这个问题,颜色在旧版浏览器中没有 alpha 通道,除了将 rgba 值转换为 rgb 或 hex 之外,不能真正对其进行 polyfill。
标签: javascript html css internet-explorer-8