兼容Ie阴影效果的CSS

sorryericsson 2014-06-27

/* 阴影效果 */
.shadow {
filter: progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=135, Color='#b9b9b9'); /*ie9-*/
box-shadow:3px 3px 3px #b9b9b9; /*ie9+*/
-webkit-box-shadow:3px 3px 3px #b9b9b9; /*火狐*/
-moz-box-shadow:3px 3px 3px #b9b9b9;  /*谷歌*/
background:#ddd; }

前端调用

<li onmousemove="$(this).addClass('shadow')" onmouseout="$(this).removeClass('shadow')">

相关推荐