<pre name="code" class="html"><div id="one"></div>
<script>
var one = document.getElementById("one");
one.onmouseover = function (){
one.style.cssText = "box-shadow: 0 0 10px red";
}
one.onmouseout = function (){
one.style.cssText = "box-shadow: 0 0 10px green";
}
</script>
使用javascript中的cssText设置box-shadow样式
最新推荐文章于 2023-03-23 20:11:48 发布