<div class="codetitle"> <span><a style="CURSOR: pointer" data="61121" class="copybut" id="copybut61121" onclick="doCopy('code61121')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code61121"> <br> <br> <br><style> <BR>.mydiv1 {height:250px;width:250px;border:#909090 1px solid;} <BR>.mydiv2 { <BR>width:250px;height:250;border:#909090 1px solid;background:#fff;color:#333; <BR>filter:progid:DXImageTransform.Microsoft.Shadow(color=#909090,direction=120,strength=4);/*ie*/ <BR>-moz-box-shadow: 2px 2px 10px #909090;/*firefox*/ <BR>-webkit-box-shadow: 2px 2px 10px #909090;/*safari或chrome*/ <BR>box-shadow:2px 2px 0px #909090;/*opera或ie9*/ <BR>} <BR></style> <br><script> <br><br>function changediv(v){ <BR>var d = document.getElementById("mydiv"); <BR>if(v == "t") d.className="mydiv2"; <BR>else d.className="mydiv1"; <BR>} <BR></script> <br><br> <br> <br><div id="mydiv" class="mydiv1" onmouseover="changediv('t');" onmouseout="changediv('f');"> <br>contents <br> </div> <br> <br> <br> </div>