【发布时间】:2011-10-14 23:33:40
【问题描述】:
我正在开发一个 Drupal 站点。客户希望网站在包括 IE6 在内的所有浏览器中看起来都完全相同。 IE 中的 box-shadow 属性存在一些问题。我知道 IE 不支持 CSS3 属性。 IE-6 的 box-shadow 是否有任何替代解决方案,使其看起来像 IE6 和 IE7 中的阴影。我尝试过 css PIE,其中我使用 IE 的 htc 文件来支持 CSS3 属性。但它不起作用。本站网址为Godsak
CSS代码是
.portal-top {
background-color: white;
box-shadow: 0 0 20px #000000;
-moz-box-shadow: 0 0 20px #000000; -webkit-box-shadow: 0 0 20px #000000; 位置:相对; 边距:15px 自动 0; }
对于我正在使用的 IE
.portal-top {
background-color: white;
box-shadow: 0 0 20px #000000;
zoom:1;
filter: progid:DXImageTransform.Microsoft.Shadow(color='#000000', Direction=145, Strength=3);
}
box-shadow 现在在 IE-7 中显示。但不是我想要的。在 IE-6 中仍然没有显示阴影。 看看 Firefox 中的 url,IE 也需要它。可能吗。
提前致谢。
【问题讨论】:
-
请将
zoom=1更改为zoom: 1,如果问题仍然存在,请告诉我们。 -
@duri :感谢您的回复。阴影在 IE7 中没有显示,但在 IE6 中还没有。在 IE 7 中,阴影与在 Firefox 中看到的不同。有什么办法可以将阴影颜色放在左侧和顶部。
标签: internet-explorer-7 internet-explorer-6 css