jquery谷歌调试

addClass()

jquery谷歌调试

jquery谷歌调试

after()

jquery谷歌调试

 append()

jquery谷歌调试

ajaxStart()

jquery谷歌调试

find()

jquery谷歌调试

andSelf()

jquery谷歌调试

animate()

$(document).ready(function () {
    $(".new_cont ul li:first a").hover(function () {
        $(".newimg img").animate({width:"80%",height:"80%"},1000);
    });
}

当鼠标停在指定<a>上时:左边的框慢慢变小

jquery谷歌调试

<div class="mydemo width mar">
    <button id="left">«</button> <button id="right">»</button>
    <div class="block"></div>
</div>            //html代码

js代码
<script type="text/javascript">
$(".mydemo #left").click(function () {
        $(this).animate({marginLeft:'+50px'},"slow");
    });
    $(".mydemo #right").click(function () {
        $(this).animate({ marginLeft: '-50px' }, "slow");
    });
</script>

效果:

jquery谷歌调试

点击左右按钮后:

jquery谷歌调试

 

相关文章:

  • 2022-12-23
  • 2021-11-15
  • 2021-12-25
  • 2022-01-07
  • 2021-09-02
  • 2021-09-27
猜你喜欢
  • 2021-06-05
  • 2022-01-09
  • 2021-11-25
  • 2022-12-23
  • 2021-08-12
  • 2022-01-12
  • 2021-12-07
相关资源
相似解决方案