5

我注意到使用 CSS 之类的

body {
    background: #f00;
}
div {
    background: rgba(255,255,255,0.4);
    -pie-background: rgba(255,255,255,0.4);
    -moz-box-shadow: 0 0 10px rgba(0,0,0,0.4);
    -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.4);
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
    padding: 50px;
    behavior: url(PIE.htc);
}

我将在 FireFox 和 IE/PIE 中获得以下信息

有可能解决这个问题吗?通过 rgba 背景显示的盒子阴影?

4

1 回答 1

5

对你来说坏消息:它看起来不起作用。

根据CSS3Pie网站,它支持 RGBA 颜色,但是...

目前所有颜色停止都呈现完全不透明,即使指定 rgba 颜色值。这是由于 VML 的线性渐变语法的限制,它不允许为单个色标设置不透明度。

(见http://css3pie.com/documentation/supported-css3-features/

他们还为此记录了一张票:https ://github.com/lojjic/PIE/issues#issue/7

于 2011-03-22T10:01:11.147 回答