css使用淡出效果将整个页面淡出后 后一个页面无法显示 cssjqueryhtml 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你应该在回调中处理转向,即效果完成之后,类似如下,淡出后转向<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title><style>.box{width:500px;height:500px;background:red;}</style><!-- jQuery library (served from Google) --><script src="http://code.jquery.com/jquery-1.11.0.min.js"></script><script>$(document).ready(function(){ $('#test').click(function(){ $(".box").fadeOut('slow',function(){ window.location='http://www.baidu.com'; }); });});</script></head><body><a href="javascript:;" id="test">点击</a><div class="box"></div></body></html> addClass里面可以加回调函数么? 报错啊不好意思我是新手 你的代码只是给body,添加了两个样式,动画的效果也不在这,你应该去找动画的回调 动画是在css里面 这个要怎么找回调?能不能说具体点 最简单的方法估计是你给动画家个时间比如500然后跳转动作加延时.delay(500)......这样你就能看见动画了.... 用JS实现OA请假单上两个日期时间区间相减算出天数 js 编码问题 jquery中dialog的问题 myArrray.sort(function(a,b){return a-b})是什么 如何让ID为T1的文本框获得ID为S2的下拉框的值 100分,请教三个正则问题,在线等 关于IFram滑条的问题。 关于页面打开和关闭的问题? 求助!!!!!!!!! 怎么测试vue的渲染速度? 关于替换图片的问题,都来看看,比较菜 如何得到本页中的所有表单对象?
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
.box{width:500px;height:500px;background:red;}
</style>
<!-- jQuery library (served from Google) -->
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script>
$(document).ready(function(){
$('#test').click(function(){
$(".box").fadeOut('slow',function(){
window.location='http://www.baidu.com';
});
});
});
</script>
</head><body>
<a href="javascript:;" id="test">点击</a>
<div class="box"></div>
</body>
</html>
然后跳转动作加延时.delay(500)......
这样你就能看见动画了....