最基本的幾種 CSS 文字濾鏡效果_CSS/HTML

來源:互聯網
上載者:User
下面做個例子吧,這都是最基本濾鏡的應用,其實兩種或幾種不同濾鏡的組合會獲得意想不到的效果,遇到問題自己多動手試試就OK了,當然要特別注意顏色的搭配,有時候用色不好是看不出效果的,配合背景圖片的應用也會有很好的效果的。
<table border=1 style="border-style: solid; border-width: 1;font-size=12px" width="520"> <tr> <td width="510"> <span style="font-size:30pt;display:block; text-align:center;color:blue; filter:glow(color=red,strength=10);height:1">一路陽光 </span></td> </tr> <tr> <td width="510"> <span style="font-size:30pt;display:block; text-align:center;color:darkblue; filter:blur(add=t,direction=135,strength=10);height:1">一路陽光</span></td> </tr> <tr> <td width="510"> <p align="center"> 一路陽光</td> </tr> <tr> <td width="510"> <p align="center"> 一路陽光</td> </tr> <tr> <td width="510"> <p align="center"> 一路陽光</td> </tr> <tr> <td width="510"> <span style="font-size:30pt;display:block; text-align:center;color:darkblue; filter:wave(add=t,freq=5,lightstrength=5,phase=0,strength=5); height:1">一路陽光</span></td> </tr> <tr> <td width="510"> <span style="font-size:30pt;display:block; text-align:center;color:darkblue; filter:shadow(color=blue);height:1">一路陽光</span></td> </tr> <tr> <td width="510"> 一路陽光</td> </tr> <tr> <td width="510"> 一路陽光</td> </tr> <tr> <td width="510"> <p align="center">SUNNY</td> </tr> <tr> <td width="510"> <p align="center">SUNNY</td> </tr> <tr> <td style="FILTER: mask(color=#E1E4EC)shadow(color=#8C96B5,direction=135)chroma(color=#E1E4EC)" align="center"><b>一路陽光</b></td> </tr> <tr> <td style="FILTER: alpha(opacity=100,finishiopacity=0,style=1)shadow(color=blue,direction=135)" align="center"><b>一路陽光</b></td> </tr> <tr> <td style="FILTER: mask(color=#E1E4EC)dropshadow(color=#B4BBCF,offx=-3,offy=-3,positive=1)chroma(color=#E1E4EC)" align="center"><b>一路陽光</b></td> </tr> <tr> <td style="FILTER: glow(color=#8C96B5,strength=2)shadow(color=#B4BBCF,direction=135)" align="center"><b>一路陽光</b></td> </tr> <tr> <td style="FILTER: mask(color=#E1E4EC)shadow(color=#B4BBCF,direction=135)chroma(color=#E1E4EC)" align="center"><b>一路陽光</b></td> </tr> <tr> <td style="FILTER: glow(strength=1)mask(color=#B4BBCF)chroma(color=#B4BBCF)" align="center" height=54><b>一路陽光</b></td> </tr> <tr> <td><span style="position:absolute;font-size:30pt;color=blue;filter:fliph">一路陽光</span></td> </tr> <tr> <td><span style="position:absolute;left:200;font-size:30pt;color=blue;filter:flipv">一路陽光</span></td> </tr> </table> <table align=center background="http://www.idc2008.com/468X60-8.gif" border=0> <tr> <td style="FILTER: glow(strength=4)mask(color=#E1E4EC)"> <b>一路陽光</b></td> </tr> </table>
[Ctrl+A 全選 注:如需引入外部Js需重新整理才能執行]
  • 相關文章

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.