asp.net中的使用jQuery动画片没有效果
asp.net中的使用jQuery动画没有效果
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default8.aspx.vb" Inherits="Default8" %>
<!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 runat="server">
<title>无标题页</title>
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#<%=bt.clientID %>").click(function(){
$("#div1").fadeout();
});
})
</script>
</head>
<body>
<form id="form1" runat="server">
<div id="div1" style="width:80px;height:80px;background-color:red;"></div><br>
<div><asp:button ID="bt" runat="server" text="Button" /></div>
</form>
</body>
</html>
用IE浏览器出现“不支持fadeout()属性或方法”,用360浏览器不出现此错误,但没有动画效果。请问为什么?
------解决思路----------------------
$("#div1").fadeOut();
<asp:button ID="bt" runat="server" text="Button" OnClientClick="return false"/>
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default8.aspx.vb" Inherits="Default8" %>
<!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 runat="server">
<title>无标题页</title>
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#<%=bt.clientID %>").click(function(){
$("#div1").fadeout();
});
})
</script>
</head>
<body>
<form id="form1" runat="server">
<div id="div1" style="width:80px;height:80px;background-color:red;"></div><br>
<div><asp:button ID="bt" runat="server" text="Button" /></div>
</form>
</body>
</html>
用IE浏览器出现“不支持fadeout()属性或方法”,用360浏览器不出现此错误,但没有动画效果。请问为什么?
------解决思路----------------------
$("#div1").fadeOut();
<asp:button ID="bt" runat="server" text="Button" OnClientClick="return false"/>