日期:2014-05-16  浏览次数:20323 次

<div>元素隐藏、显示的时候触发那些事件
<div> 元素隐藏、显示的时候触发那些事件

------解决方案--------------------
onpropertychange
------解决方案--------------------
<div id= "d1 " onpropertychange= "alert( 'ok '); ">

</div>

<script language= "javascript ">
d1.style.display= "none ";
</script>

------解决方案--------------------
<div onpropertychange= "ab() " style= "DISPLAY: none " id= "divMM "> abc </div>
function window_load()
{
divMM.style.display= "block ";
}

function ab()
{
.......
}