【发布时间】:2014-10-27 12:22:59
【问题描述】:
这是我的代码
<!DOCTYPE html>
<html>
<head>
<style>
div {
position:relative;
border: 1px solid #696;
padding: 60px 0;
text-align: center; width: 200px;
-webkit-box-shadow: #666 0px 0px 8px;
-moz-box-shadow: #666 0px 0px 8px;
box-shadow: #666 0px 0px 8px;
background: #EEFF99;
behavior: url(http://css3pie.com/pie/PIE.php);}</style>
</head>
<body>
<div></div>
</body>
</html>
我在网上搜索了很多,并尝试了我得到的所有可能的选项,但它似乎仍然不起作用,
请有人建议我缺少什么?
由于 jsfiddle 似乎无法在 IE8 中运行,您可以在此处查看 **http://www.w3schools.com/cssref/tryit.asp?filename=trycss3_box-shadow 并将 html 替换为上面给定的 html **
谢谢
【问题讨论】:
-
它正在工作。你的浏览器是什么
-
它在标题中提到,IE8
-
它在documentation 中说,如果您将
PIE.php与apache 一起使用,则需要设置content-type。 -
我尝试了 PIE.htc,但仍然无法正常工作
-
如果你检查这个链接css3pie.com,它似乎工作,但我的代码不工作:(