用CSS3 PIE兼容IE8问题
来源:1-13 作业题
JOYING1995
2018-07-24 09:06:25
想用PIE兼容ie中的border-radius,可是没有效果,老师帮我看一下哪里出问题了?
html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" type="text/css" href="724test.css">
</head>
<body>
<div></div>
<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.js"></script>
<script>
$(function() {
if (window.PIE) {
$('div').each(function() {
PIE.attach(this);
});
}
});
</script>
</body>
</html>css
div{
width: 100px;
height: 100px;
background: blue;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
behavior: url(PIE.htc);
}
所有文档都是一个文件夹下面的。PIE是官网下载的PIE-1.0.0。
1回答
JOYING1995
提问者
2018-07-24
我再引入了pie.js才可以实现,可是为什么很多人只要引入pie.htc就可以了啊?
相似问题