css3控制文字陰影,代碼如下:
css部分:
.test li{margin-top:10px;}
.test .mormal p{text-shadow:1px 1px rgba(0,0,0,.3);}
.test .blur p{text-shadow:1px 1px 1px rgba(0,0,0,.3);}
.test .group p{text-shadow:1px 1px 0 rgba(255,255,255,1),1px 1px 2px rgba(0,85,0,.8);}html部分:
<ul class="test"> <li class="mormal"> <strong>普通文字陰影</strong> <p>測試普通文字陰影效果</p> </li> <li class="blur"> <strong>模糊文字陰影效果</strong> <p>測試模糊文字陰影效果</p> </li> <li class="group"> <strong>多重模糊文字陰影效果</strong> <p>測試多重模糊文字陰影效果</p> </li> </ul>
我是有底線的
掃描二維碼手機查看該文章
文章引用:http://www.qingbaosc.com/news/webzhishi/1379.html




