标题:滤镜没有效果?怎么办?
只看楼主
拒绝飞翔的燕
Rank: 1
来 自:郑州
等 级:新手上路
帖 子:5
专家分:0
注 册:2009-11-11
结帖率:50%
 问题点数:0 回复次数:2 
滤镜没有效果?怎么办?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
time{font-family:comic sans ms;
font-size:14pt;
font-weight:bold;
color:#00008D;
}
</style>
<script language="javascript" type="text/javascript">
var ctimer;




function settimes(){
tim2.style.left=tim1.style.posLeft;
tim2.style.top=tim1.style.posTop+tim1.offsetHeight-6;
var time=new Date();
h=time.getHours();
m=time.getMinutes();
s=time.getSeconds();
if(h<10){h="0"+h;}
if(m<10){m="0"+m;}
if(s<10){s="0"+s;}
tim1.innerHTML=h+":"+m+":"+s;
tim2.innerHTML=h+":"+m+":"+s;
ctimer=setTimeout('settimes()',1000);
}


</script>
</head>

<body onload="settimes()">
<center>
<h1>水中倒影</h1>
<hr/>
<div id="tim1" style="position:relative;width:10;height:10;top:100;left:100" class="time"></div>
<div id="tim2" style="position:absolute;Filter:Flipv()alpha(opacity=20);font-style:italic" class="time"></div>
</center>
</body>
</html>
搜索更多相关主题的帖子: 滤镜 效果 
2009-11-11 15:24
aspic
Rank: 17Rank: 17Rank: 17Rank: 17Rank: 17
等 级:贵宾
威 望:51
帖 子:2258
专家分:8050
注 册:2008-2-18
得分:0 
程序代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www. xmlns="http://www. http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
time{font-family:comic sans ms;
font-size:14pt;
font-weight:bold;
color:#00008D;
}
</style>
<script>
var ctimer;
function settimes() {
    document.getElementById('tim2').style.left = document.getElementById('tim1').style.posLeft + 10;
    document.getElementById('tim2').style.top = document.getElementById('tim1').style.posTop + document.getElementById('tim1').offsetHeight + 81;
    var time = new Date();
    h = time.getHours();
    m = time.getMinutes();
    s = time.getSeconds();
    if (h < 10) {
        h = "0" + h;
    }
    if (m < 10) {
        m = "0" + m;
    }
    if (s < 10) {
        s = "0" + s;
    }
    document.getElementById('tim1').innerHTML = h + ":" + m + ":" + s;
    document.getElementById('tim2').innerHTML = h + ":" + m + ":" + s;
    ctimer = setTimeout('settimes()', 1000);
}
</script>
</head>

<body onload="settimes()">
<h1>水中倒影</h1>
<hr/>
<div id="tim1" style="position:relative;width:10px;height:10px;top:100px;left:100px" class="time"></div>
<div id="tim2" style="position:absolute;Filter:Flipv()alpha(opacity=50);font-style:italic" class="time"></div>
</body>
</html>
2009-11-12 09:35
冰弦冷瑟
Rank: 2
来 自:廊坊
等 级:论坛游民
威 望:1
帖 子:12
专家分:75
注 册:2009-10-31
得分:0 
CSS滤镜只在IE下有效。而且这句代码:
<div id="tim2" style="position:absolute;Filter:Flipv()alpha(opacity=50);font-style:italic" class="time"></div>
加上Flipv()是什么意思?没有必要吧?
2009-11-22 01:55



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-291930-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.389523 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved