[字号:  ]

用CSS设计艺术字

发布时间:2007-8-29 20:24   作者: qjy1984   信息来源: PHPChina 开源社区门户
    <html>

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>用CSS设计艺术字</title>

    <body>

    <style type="text/css">
    <!--
    .title_1 {font-family: "Verdana"; font-size: 12px; color: #E1E4EC; width: 100%; filter: DropShadow(Color=#213C63, OffX=1, OffY=1)}
    .text {font-family: "Verdana"; font-size: 12px; line-height: 16px; color: #666699; text-decoration: none}
    .unnamed1 {filter: DropShadow(Color=#FFFFFF, OffX=1, OffY=1)}
    -->
    </style>

    <table width="500" border="0" cellspacing="1" cellpadding="0" bgcolor="#8C96B5" align="center">
    <tr>
    <td bgcolor="#E1E4EC">
    <table width="100%" border="0" cellspacing="8" cellpadding="0" class="unnamed1">
    <tr>
    <td class="text">如果灵活应用CSS各种滤镜的特点并加以组合,我们可以得到许多意想不到的效果。这是一些效果示范,供各位参考。</td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td bgcolor="#E1E4EC">
    <table width="100%" border="0" cellspacing="8" cellpadding="0" class="unnamed1">
    <tr>
    <td class="text">
    <table align=center border=0 width="200" height="50">
    <tr>
    <td style="FILTER: blur(direction=135,strength=8)" align="center"><font face="黑体" color="#8C96B5" size="6"><b><i>网页特效Abc</i></b></font></td>
    </tr>
    </table>
    <br>用blur滤镜做出的效果,代码如下:<br>
    <b>FILTER: blur(direction=135,strength=8)</b></td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td bgcolor="#E1E4EC">
    <table width="100%" border="0" cellspacing="8" cellpadding="0" class="unnamed1">
    <tr>
    <td class="text">
    <table align=center border=0 width="200" height="50">
    <tr>
    <td style="FILTER: dropshadow(color=#B4BBCF,offx=6,offy=6,positive=1)" align="center"><font face="黑体" color="#8C96B5" size="6"><b><i>网页特效Abc</i></b></font></td>
    </tr>
    </table>
    <br>用dropshadow滤镜做出的效果,代码如下:<br>
    <b>FILTER: dropshadow(color=#B4BBCF,offx=6,offy=6,positive=1)</b></td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td bgcolor="#E1E4EC">
    <table width="100%" border="0" cellspacing="8" cellpadding="0" class="unnamed1">
    <tr>
    <td class="text">
    <table align=center border=0 width="200" height="50">
    <tr>
    <td style="FILTER: glow(color=#B4BBCF,strength=5)" align="center"><font face="黑体" color="#8C96B5" size="6"><b><i>网页特效Abc</i></b></font></td>
    </tr>
    </table>
    <br>用glow滤镜做出的效果,代码如下:<br>
    <b>FILTER: glow(color=#B4BBCF,strength=5)</b></td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td bgcolor="#E1E4EC">
    <table width="100%" border="0" cellspacing="8" cellpadding="0" class="unnamed1">
    <tr>
    <td class="text">
    <table align=center border=0 width="200" height="50">
    <tr>
    <td style="FILTER: alpha(opacity=100,finishiopacity=0,style=1)shadow(color=#8C96B5,direction=135)" align="center"><font face="黑体" color="#8C96B5" size="6"><b><i>网页特效Abc</i></b></font></td>
    </tr>
    </table>
    <br>
    这个效果用到了两种滤镜:shadow和alpha,代码如下:<br>
    <b>FILTER: alpha(opacity=100,finishiopacity=0,style=1)<br>
    shadow(color=#8C96B5,direction=135)</b> </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td bgcolor="#E1E4EC">
    <table width="100%" border="0" cellspacing="8" cellpadding="0" class="unnamed1">
    <tr>
    <td class="text">
    <table align=center border=0 width="200" height="50">
    <tr>
    <td style="FILTER: mask(color=#E1E4EC)shadow(color=#8C96B5,direction=135)chroma(color=#E1E4EC)" align="center"><font face="黑体" color="#8C96B5" size="6"><b><i>网页特效Abc</i></b></font></td>
    </tr>
    </table>
    <br>这个效果也用到两个滤镜mask和shadow,代码如下:<br>
    <b>FILTER: mask(color=#E1E4EC)<br>
    shadow(color=#8C96B5,direction=135)chroma(color=#E1E4EC)</b><br>
    <br>注意:mask的颜色要和网页背景色一致,字体的颜色由shadow决定。</td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td bgcolor="#E1E4EC">
    <table width="100%" border="0" cellspacing="8" cellpadding="0" class="unnamed1">
    <tr>
    <td class="text">
    <table align=center border=0 width="200" height="50">
    <tr>
    <td style="FILTER: glow(color=#8C96B5,strength=2)shadow(color=#B4BBCF,direction=135)" align="center"><font face="黑体" color=#E1E4EC size=6><b><i>网页特效Abc</i></b></font></td>
    </tr>
    </table>
    <br>用glow滤镜可以做空心字,方法是将字体颜色设置为背景色,再将glow滤镜的strenght的值设置为1或2即可。这个效果的代码如下:<br>
    <b>FILTER: glow(color=#8C96B5,strength=2)<br>
    shadow(color=#B4BBCF,direction=135)</b> </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td bgcolor="#E1E4EC"></td>
    </tr>
    <tr>
    <td bgcolor="#E1E4EC">
    <table width="100%" border="0" cellspacing="8" cellpadding="0">
    <tr>
    <td class="text">
    <table height=150 cellspacing=0 cellpadding=0 width=480 align=center border=0>
    <tr>
    <td style="FILTER: glow(strength=4)mask(color=#E1E4EC)" height=109 align="center" valign="middle"><font face="Verdana" color="#8C96B5" size="6"><i><b>WELCOME
    TO<br>
    http://XFBBS.Com</b></i></font></td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td class="unnamed1"><font class="text">这个效果的代码:<br>
    <b>FILTER: glow(strength=4)mask(color=#E1E4EC)</b></font></td>
    </tr>
    </table>
    </td>
    </tr>
    </table>

    </body>

          </html>

[ 本帖最后由 qjy1984 于 2007-8-31 01:45 编辑 ]


jia.gif

最新回复

FLASH百强 at 2007-8-30 14:03:57
应该把效果贴出来
FLASH百强 at 2007-8-30 14:06:14
还是支持下
maikongjian11 at 2007-8-30 15:15:32
我来帮忙顶一下,
qjy1984 at 2007-8-31 01:26:16
呵呵,好的,因为这两天才学的。 记住你的要求了。
qjy1984 at 2007-8-31 01:46:32
处理好了,看看怎么样。:)
歪歪 at 2008-3-30 11:33:18
顶。
maomaosun at 2008-4-24 11:27:37
how2fly at 2008-5-15 13:41:56
呵呵,,感谢楼主一起分享。。
cy_php at 2008-8-22 10:57:36
谢谢