发光1
- color: #FFF;
- position: absolute; //一定要设置position
- filter: Glow(Color:#666666, Strength:1);
发光2
- <html>
- <head>
- <title>CSS滤镜实现发光字体</title>
- <meta http-equiv="content-Type" content="text/html;charset=gb2312">
- </head>
- <body bgcolor="#000000">
- <p id="me1" style="position: absolute; left: 155; top: -1; width: 668; height: 405; filter: glow(color=#ffff00, strength=00)" align="center"><font size="7" color="#FFFF00"><strong><b>源码爱好者</b></strong></font></p>
- <script language="vbscript">
- dim i
- dim j
- i=0
- j=0
- sub window_onload()
- me1.filters.glow.strength=i
- me1.filters.glow.color=j
- i=i+1
- j=j+500
- if i>250 then i=0
- if j>26777215 then j=0
- window.settimeout "window_onload()",100
- end sub
- </script>
- </body>
- </html>
欢迎大家阅读《css 设置文字发光和文字描边_css》,跪求各位点评,若觉得好的话请收藏本文,by 搞代码