---
title: "CSS3 support for Internet Explorer 6, 7, and 8"
author: "javaEEdevelop"
date: "2012-09-21T16:47:24Z"
tags: []
categories: ["Web前端"]
slug: "css3-support-for-internet-explorer-6-7-and-8"
draft: false
lastmod: "2012-09-21T16:54:23Z"
id: 1683172
url: "https://javaeedevelop.iteye.com/blog/1683172"
---

主要是在css中导入这个文件ie-css3.htc

 

behavior: url(ie-css3.htc);

 

导入这个文件事需要服务器的支持，不然在ie中报

Access is denied to: file:///C:/Users/Administrator/Desktop/aa/ie-css3.htc

就是拒绝访问

 

效果

![](http://dl.iteye.com/upload/attachment/0074/1568/f2c12e58-c0aa-3dd0-bf38-c61a4e4405ba.png)

事例

 

```
<!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/)