【问题标题】:css3pie box shadow not working in ie8css3pie框阴影在ie8中不起作用
【发布时间】: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,它似乎工作,但我的代码不工作:(

标签: jquery css css3pie


【解决方案1】:

请下载 zip 文件 (http://css3pie.com/download-latest-1.x),您将获得解决方案。

您需要将以上文件添加到您的项目中

试试看。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-10-17
    • 1970-01-01
    • 1970-01-01
    • 2011-05-18
    相关资源
    最近更新 更多