主要是在css中导入这个文件ie-css3.htc
behavior: url(ie-css3.htc);
导入这个文件事需要服务器的支持,不然在ie中报
Access is denied to: file:///C:/Users/Administrator/Desktop/aa/ie-css3.htc
就是拒绝访问
效果
事例
<!DOCTYPE html>
<html lang="en">
<head>
<title>CSS3 support in Internet Explorer 6, 7, and 8</title>
<style type="text/css">
/* The script works with absolutely positioned elements too */
.box3 {
background-color: #ddd;
width: 110px;
height: 25px;
padding: 20px;
position: absolute;
top: 1px; left: 1px;
text-align: center;
font-weight: bold;
-moz-border-radius: 15px;
-webkit-border-radius: 15px;
border-radius: 15px;
-moz-box-shadow: 10px 10px 20px #000;
-webkit-box-shadow: 10px 10px 10px #000;
box-shadow: 10px 10px 20px #000;
behavior: url(ie-css3.htc);
}
</style>
</head>
<body>
<div class="box3">
<a href="ie-css3.htc">Download</a>
</div>
</body>
</html>
ie-css3.htc官网下载地址(http://fetchak.com/ie-css3/)