这个例子使用setTimeout实现非常简单的动画效果。

<style type="text/css">
div
{
    height
:200px;
    width
:600px;
    background-color
:#CCCCCC;
}
#test1
{
    background
:#99CC00;
    position
:fixed;
    left
:300px;
    filter
:alpha(opacity=0);
}
</style>

 

<div id="test1"></div>
<button onclick="doSome()">测试</button>

 

script>

 

 

相关文章:

  • 2022-12-23
  • 2022-01-07
  • 2021-07-16
  • 2021-12-14
  • 2021-12-05
  • 2021-11-19
猜你喜欢
  • 2021-11-05
  • 2021-08-06
  • 2021-07-28
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案