|
我们用DHTML做一个燃烧的文字特效。
在<head>标记对间加入:
<style type=text/css>
.fire
font-family ″隶书″
font-size50
filterglowcolor=#FF8000strengh=0
widthauto
heightauto
positionrelative
</style>
//这里定义一个fire样式,字体为隶书,并用了过滤器filter的glow方法,使文字边缘产生发光效果。
在<body>标记对间加入:
<div id=theLayer style=positionabsolutewidth302pxheight100pxz-index1left180pxtop92px>
<table>
<tr>
<td class=fire>燃烧的文字
</tr>
</table>
</div>
//定义了层thelayer,并引用样式fire
好了,是不是很简单,但效果却很好哟!(厦门 綦小刚)}
|