gpt4 book ai didi

html - 为什么 IE hacks 对我不起作用?

转载 作者:太空宇宙 更新时间:2023-11-04 14:46:35 24 4
gpt4 key购买 nike

我在 IE 中遇到阴影和其他 hack 问题。我已经看到了很多针对 IE 的修复。我无法让他们为我工作,我也找不到原因的解释。

这是我尝试过的一种技巧的示例: http://i.imgur.com/31Dra.png

我的代码和网页在左边。这个黑客的网站是: http://robertnyman.com/2010/03/16/drop-shadow-with-css-for-all-web-browsers/

真正让我着迷的是它可以在 IE 中的那个网站上运行。我还检查了源代码(在 chrome 中),但页面显示在 IE 中。

这是 IE 8,只是为了澄清。

对此的任何解释将不胜感激。

HTML:

<head>
<link REL=StyleSheet HREF="style.css" TYPE="text/css" MEDIA=screen />
</head>
<body>
<div class="shadow">Nothing to see, move along.</div>
</body>

CSS:

.shadow {
-moz-box-shadow: 3px 3px 4px #000;
-webkit-box-shadow: 3px 3px 4px #000;
框阴影:3px 3px 4px #000;



-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000')";


过滤器:progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000');

背景颜色:00ccff;

最佳答案

这是因为您没有接受浏览器顶部的安全风险警告,因为“hacks”是在 ActiveX 中实现的。

另请参阅 CSS dependent on ActiveX?

关于html - 为什么 IE hacks 对我不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6861592/

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