找回密码
 注册
广告投放 虚位以待【阿里云】2核2G云新老同享 99元/年,续费同价做网站就用糖果主机-sugarhosts.comJtti.com-新加坡服务器,美国服务器,香港服务器
查看: 601|回复: 5

Css不朽的经典—3D文字特效

[复制链接]
发表于 2005 年 12 月 18 日 02:33:41 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
  1. <style type="text/css">
  2. <!--
  3. .sample {
  4.   font-style: italic; font-family: arial black;font-size: 40px; font-weight: bold; cursor: hand;
  5. }
  6. -->
  7. </style>
  8. <title>Css不朽的经典—3D文字特效</title>
  9. <div>
  10. <h2>3D Text</h2>
  11. <p>以下是一个用了blur滤镜而另一个没用的叠加效果</p>
  12. <p onClick="alert(this.innerHTML)"> <span class="sample"
  13. style="width: 200px; height: 70; color: black; filter: Blur(Add=0, Direction=135, Strength=10);"
  14. >Ttop.cn</span><span class="sample"
  15. style="position: relative; left: -201; top: -15; width: 200; color: #2984ff;">
  16. Ttop.cn</span> </p>
  17. <h2>Glass Text</h2>
  18. <p>这个是两个都用了alpha滤镜的效果</p>
  19. <p onClick="alert(this.innerHTML)"> <span class="sample"
  20. style="width: 200px; height: 70; color: lightskyblue; filter: Alpha(Opacity=60) Blur(Add=0, Direction=135, Strength=20);"
  21. >Ttop.cn</span><span class="sample"
  22. style="position: relative; left: -201; top: -15; width: 200; color: lightskyblue; filter: Alpha(Opacity=60);"
  23. >Ttop.cn</span> </p>
  24. <h2>Inner Shadow</h2>
  25. <p>这个是先用了一段白色的文字,再加了mask()滤镜,再用了shadow()滤镜,最后加入chroma()滤镜形成后一段字体,放在前一段文字的相对left:
  26. -200px位置上形成的。</p>
  27. <p onClick="alert(this.innerHTML)"> <span class="sample"
  28. style="width: 200px; height: 70; color: white;"
  29. >Ttop.cn</span><span class="sample"
  30. style="width: 200px; height: 70; position: relative; left: -200; filter: mask(color=red) shadow(direction=135) chroma(color=red);"
  31. >Ttop.cn</span> </p>
  32. <h2>Outline Text</h2>
  33. <p>用mask, glow and chroma三个滤镜联合作用</p>
  34. <p onClick="alert(this.innerHTML)"> <span class="sample" style="width: 200px; height: 70; filter: mask(color=red) glow(color=black, strength=1) chroma(color=red);">Ttop.cn</span> </p>
  35. <h2>与Marquee的完美结合</h2>
  36. <p onClick="alert(this.innerHTML)"> <span class="sample"
  37. style="width:320px; height: 70; color: black; filter: Blur(Add=0, Direction=135, Strength=10);"
  38. ><marquee width:300 height:70 scrollamount="1" behavior="alternate" class="sample">[url]www.Ttop.cn</marquee></span>[/url]
  39. <span class="sample"
  40. style="position: relative; left: -320; top: -15; width: 320; color: #2984ff;">
  41. <marquee width:320 height:70 scrollamount="1" behavior="alternate" class="sample">[url]www.Ttop.cn</marquee></span>[/url] </p>
  42. </div>
复制代码

效果:http://www.ttop.cn/temp/Css3d.htm
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
发表于 2005 年 12 月 18 日 10:30:34 | 显示全部楼层
【腾讯云】2核2G云服务器新老同享 99元/年,续费同价
滤镜只有IE内核浏览器支持
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2005 年 12 月 18 日 13:31:14 | 显示全部楼层
支持下
这个我也试试
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2005 年 12 月 21 日 12:40:52 | 显示全部楼层
是噢,不错
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2005 年 12 月 22 日 03:07:20 | 显示全部楼层
板凳!!不错,用了!
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

 楼主| 发表于 2005 年 12 月 18 日 02:33:41 | 显示全部楼层

Css不朽的经典—3D文字特效

  1. <style type="text/css">
  2. <!--
  3. .sample {
  4.   font-style: italic; font-family: arial black;font-size: 40px; font-weight: bold; cursor: hand;
  5. }
  6. -->
  7. </style>
  8. <title>Css不朽的经典—3D文字特效</title>
  9. <div>
  10. <h2>3D Text</h2>
  11. <p>以下是一个用了blur滤镜而另一个没用的叠加效果</p>
  12. <p onClick="alert(this.innerHTML)"> <span class="sample"
  13. style="width: 200px; height: 70; color: black; filter: Blur(Add=0, Direction=135, Strength=10);"
  14. >Ttop.cn</span><span class="sample"
  15. style="position: relative; left: -201; top: -15; width: 200; color: #2984ff;">
  16. Ttop.cn</span> </p>
  17. <h2>Glass Text</h2>
  18. <p>这个是两个都用了alpha滤镜的效果</p>
  19. <p onClick="alert(this.innerHTML)"> <span class="sample"
  20. style="width: 200px; height: 70; color: lightskyblue; filter: Alpha(Opacity=60) Blur(Add=0, Direction=135, Strength=20);"
  21. >Ttop.cn</span><span class="sample"
  22. style="position: relative; left: -201; top: -15; width: 200; color: lightskyblue; filter: Alpha(Opacity=60);"
  23. >Ttop.cn</span> </p>
  24. <h2>Inner Shadow</h2>
  25. <p>这个是先用了一段白色的文字,再加了mask()滤镜,再用了shadow()滤镜,最后加入chroma()滤镜形成后一段字体,放在前一段文字的相对left:
  26. -200px位置上形成的。</p>
  27. <p onClick="alert(this.innerHTML)"> <span class="sample"
  28. style="width: 200px; height: 70; color: white;"
  29. >Ttop.cn</span><span class="sample"
  30. style="width: 200px; height: 70; position: relative; left: -200; filter: mask(color=red) shadow(direction=135) chroma(color=red);"
  31. >Ttop.cn</span> </p>
  32. <h2>Outline Text</h2>
  33. <p>用mask, glow and chroma三个滤镜联合作用</p>
  34. <p onClick="alert(this.innerHTML)"> <span class="sample" style="width: 200px; height: 70; filter: mask(color=red) glow(color=black, strength=1) chroma(color=red);">Ttop.cn</span> </p>
  35. <h2>与Marquee的完美结合</h2>
  36. <p onClick="alert(this.innerHTML)"> <span class="sample"
  37. style="width:320px; height: 70; color: black; filter: Blur(Add=0, Direction=135, Strength=10);"
  38. ><marquee width:300 height:70 scrollamount="1" behavior="alternate" class="sample">[url]www.Ttop.cn</marquee></span>[/url]
  39. <span class="sample"
  40. style="position: relative; left: -320; top: -15; width: 320; color: #2984ff;">
  41. <marquee width:320 height:70 scrollamount="1" behavior="alternate" class="sample">[url]www.Ttop.cn</marquee></span>[/url] </p>
  42. </div>
复制代码

效果:http://www.ttop.cn/temp/Css3d.htm
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|金光论坛

GMT+8, 2025 年 2 月 1 日 12:11 , Processed in 0.018725 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表