我在使 box-shadow
工作时遇到问题。我运行了一个非常简单的程序,它生成一个带有 box-shadow
的 div
,它显示使用 Firefox 和 IE10 正确运行 XAMPP,但是当使用 IIS6 时,firefox 可以工作,而 IE10 不能.
<!DOCTYPE html>
<html>
<head>
<style>
div
{
width:300px;
height:100px;
background-color:yellow;
box-shadow: 10px 10px 5px #888888;
}
</style>
</head>
<body>
<div>allo</div>
</body>
</html>
最佳答案
IE 可能没有使用 IE10 模式,您可以使用 Developer Tools(按 F12)进行检查。
如果没有,最简单的解决方法是在 head
中添加:
<meta http-equiv="X-UA-Compatible" content="IE=edge">
关于html - IE 10 或 IIS6 不支持 box.shadow,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18709113/