jQuery 动画效果,关键词 animate
2015-05-21 18:25
295 查看
<!DOCTYPE html> <html> <head> <script src="/jquery/jquery-1.11.1.min.js"> </script> <script> $(document).ready(function(){ $("button").click(function(){ $("div").animate({left:'250px'}); }); }); </script> </head> <body> <button>开始动画</button> <p>默认情况下,所有 HTML 元素的位置都是静态的,并且无法移动。如需对位置进行操作,记得首先把元素的 CSS position 属性设置为 relative、fixed 或 absolute。</p> <div style="background:#98bf21;height:100px;width:100px;position:absolute;"> </div> </body> </html>
相关文章推荐
- jQuery学习教程七: jQuery 效果 - 动画 animate
- 关于设置jQuery的animate动画没有显示效果的问题
- jquery animate 动画效果使用说明
- jQuery动画效果animate和scrollTop结合使用实例
- jQuery 效果 - 动画(animate() 方法)
- 用js实现类似jquery里的animate动画效果
- jQuery 效果 - animate() 方法 自定义动画效果
- jQuery动画效果animate和scrollTop结合使用实例
- jQuery动画效果animate和scrollTop结合使用实例
- jQuery-animate万能动画效果
- jQuery中animate()动画效果的实现
- jQuery效果 - 动画animate()
- jQuery动画效果animate和scrollTop结合使用实例
- jquery中的动画效果方法animate()及其回调函数的使用
- 【jQuery】调用animate()方法制作简单的动画效果
- jQuery动画效果animate和scrollTop结合使用实例
- 【Jquery】jquery动画效果animate
- 利用jQuery的动画函数animate实现豌豆发射效果
- jQuery动画效果2(animate移位效果/stop停止/delay延时效果)
- jquery animate 动画效果使用解析