css 設定文字發光和文字描邊

來源:互聯網
上載者:User

發光1

 
  1. color: #FFF; 
  2. position: absolute;   //一定要設定position 
  3. filter: Glow(Color:#666666, Strength:1); 



發光2

 
  1. <html> 
  2. <head> 
  3. <title>CSS濾鏡實現發光字型</title> 
  4. <meta http-equiv="content-Type" content="text/html;charset=gb2312"> 
  5. </head> 
  6. <body bgcolor="#000000"> 
  7. <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> 
  8. <script language="vbscript"> 
  9. dim i 
  10. dim j 
  11. i=0 
  12. j=0 
  13. sub window_onload() 
  14. me1.filters.glow.strength=i 
  15. me1.filters.glow.color=j 
  16. i=i+1 
  17. j=j+500 
  18. if i>250 then i=0 
  19. if j>26777215 then j=0 
  20. window.settimeout "window_onload()",100 
  21. end sub 
  22. </script> 
  23. </body> 
  24. </html> 



聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.