CSS 边框 阴影 效果
下面将css实现阴影效果,以便需要朋友们,直接上代码
#shadow1{
width: 200px;
height: 100px;
color: white;
background-color: red;
box-shadow: 5px -5px 1px 1px #000;
-webkit-box-shadow:5px -5px 1px 1px #000;
-moz-box-shadow:5px 5px 1px 1px #000;
/* For IE 8 */
-ms-filter: progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=120, Color='#1000');
/* For IE 5.5 - 7 */
filter: progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=125, Color='#1000');
}
#shadow2{
width: 420px;
height: 650px;
background: url(1.jpg) no-repeat;
margin-tZ喎"http://www.2cto.com/kf/ware/vc/" target="_blank" class="keylink">vcDogMjBweDs8YnI+CmJveC1zaGFkb3c6IDEwcHggOHB4IDEwcHggM3B4ICMwMDA7ICAvKkNocm9tZSA2JiM0MzssIEZpcmVmb3ggNCYjNDM7LCBJRSA5JiM0MzssIGlPUyA1JiM0MzssIE9wZXJhIDEwLjUwJiM0MzsqLzxicj4KLXdlYmtpdC1ib3gtc2hhZG93OiAxMHB4IDhweCAxMHB4IDNweCAjMDAwOzxicj4KLW1vei1ib3gtc2hhZG93OiAxMHB4IDhweCAxMHB4IDNweCAjMDAwOzxicj4KLypiYWNrZ3JvdW5kLWNsaXA6IHBhZGRpbmctYm94OyovPGJyPgpvcGFjaXR5OiAwLjk7IC8qzbjD97bIKi88YnI+Cn08YnI+CjwvcD4KPHA+PGltZyBzcmM9"http://www.2cto.com/uploadfile/Collfiles/20140831/20140831093729120.png" alt="">
阴影的例子就到这里,文章简陋,不足之处还请大神多多指正,谢谢...