电商托管运营公司:为什么滤镜没有效果

来源:百度文库 编辑:高考问答 时间:2024/04/29 21:14:20
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
<script language="javascript">
function divin(obj)
{
obj.filters.blendTrans.apply();
obj.style.display="none";
obj.filters.blendTrans.play();
}
</script>
</head>

<body>
<div id="h" style="width:200;height:200;background-color:#ffaaee;filter:blendTrans(duration=2)">
Hello,World!
</div>
<button onclick="divin(h)">文字消失</button>
</body>
</html>
为什么点击“文字消失”按扭后DIV块消失但却没有滤镜效果