



























工作原理:
当点击<img class=”delete”>时,它会找到自己所属的上级标签<div class=”pane”>,并激活其不透明性为慢慢地隐藏消失。
代码:
$(document).ready(function(){ $(”.pane .delete”).click(function(){

$(this).parents(”.pane”).animate({ opacity: “hide” }, “slow”);

});

});

参考网址:http://www.bbon.cn/wp-content/uploads/demo/jquery/simple-disappear.html
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。