图片有中间向左移动图片逐渐缩小???

解决方案 »

  1.   


    <script type="text/javascript">
            function an() {
                $("#dgicon").animate({
                    height: -10, widht: -10, "margin-left": -10
                }, "slow");
            }
        
     </script>
        <div style="width: 500px; height: 300px;">
            <img id="dgicon" src="img/dg_43.jpg" style="height: 97px; margin-left: 120px;" alt="" />
        </div>
        <input type="button" value="点击动画" onclick="an();" />