CSS實現文字的邊框效果

來源:互聯網
上載者:User

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><br /><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head><title>Cross-Browser Text Glow Demo</title><br /><mce:style type="text/css"><!--<br />* {<br />font-family:Arial,Helvetica,sans-serif;<br />font-size:16px;<br />}<br />div {<br /> position:absolute;<br /> top:20px;<br /> left:20px;<br /> padding:0;<br /> color:#000;<br /> z-index:3;<br />}<br />#d2, #d3, #d4, #d5, #d6, #d7 {color:#fd6;}<br />#d8, #d9, #d10, #d11, #d12, #d13 {color:#ffa;}</p><p>.top {color:#fff;}</p><p>#d2 {<br /> top:19px;<br /> left:19px;<br /> z-index:2;<br />}<br />#d3 {<br /> top:21px;<br /> left:21px;<br /> z-index:2;<br />}<br />#d4 {<br /> top:19px;<br /> left:21px;<br /> z-index:2;<br />}<br />#d5 {<br /> top:21px;<br /> left:19px;<br /> z-index:2;<br />}<br />#d6 {<br /> top:19px;<br /> z-index:2;<br />}<br />#d7 {<br /> top:21px;<br /> z-index:2;<br />}</p><p>#d8 {<br /> top:18px;<br /> left:18px;<br /> z-index:1;<br />}<br />#d9 {<br /> top:22px;<br /> left:22px;<br /> z-index:1;<br />}<br />#d10 {<br /> top:18px;<br /> left:22px;<br /> z-index:1;<br />}<br />#d11 {<br /> top:22px;<br /> left:18px;<br /> z-index:1;<br />}<br />#d12 {<br /> top:18px;<br /> z-index:1;<br />}<br />#d13 {<br /> top:22px;<br /> z-index:1;<br />}<br />--></mce:style><style type="text/css" mce_bogus="1">* {<br />font-family:Arial,Helvetica,sans-serif;<br />font-size:16px;<br />}<br />div {<br /> position:absolute;<br /> top:20px;<br /> left:20px;<br /> padding:0;<br /> color:#000;<br /> z-index:3;<br />}<br />#d2, #d3, #d4, #d5, #d6, #d7 {color:#fd6;}<br />#d8, #d9, #d10, #d11, #d12, #d13 {color:#ffa;}</p><p>.top {color:#fff;}</p><p>#d2 {<br /> top:19px;<br /> left:19px;<br /> z-index:2;<br />}<br />#d3 {<br /> top:21px;<br /> left:21px;<br /> z-index:2;<br />}<br />#d4 {<br /> top:19px;<br /> left:21px;<br /> z-index:2;<br />}<br />#d5 {<br /> top:21px;<br /> left:19px;<br /> z-index:2;<br />}<br />#d6 {<br /> top:19px;<br /> z-index:2;<br />}<br />#d7 {<br /> top:21px;<br /> z-index:2;<br />}</p><p>#d8 {<br /> top:18px;<br /> left:18px;<br /> z-index:1;<br />}<br />#d9 {<br /> top:22px;<br /> left:22px;<br /> z-index:1;<br />}<br />#d10 {<br /> top:18px;<br /> left:22px;<br /> z-index:1;<br />}<br />#d11 {<br /> top:22px;<br /> left:18px;<br /> z-index:1;<br />}<br />#d12 {<br /> top:18px;<br /> z-index:1;<br />}<br />#d13 {<br /> top:22px;<br /> z-index:1;<br />}</style></head><body></p><p><div id="d1">CSS實現文字的邊框效果</div><br /><div id="d2">CSS實現文字的邊框效果</div><br /><div id="d3">CSS實現文字的邊框效果</div></p><p></body></html>

相關文章

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.