為什么方塊沒(méi)反應(yīng)啊
<!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>
? ? ? ? <title>制作移動(dòng)位置的動(dòng)畫(huà)</title>
? ? ? ? <script src="http://libs.baidu.com/jquery/1.9.0/jquery.js" type="text/javascript"></script>
? ? ? ? <link href="style.css" rel="stylesheet" type="text/css" />
? ? </head>
? ??
? ? <body>
? ? ? ? <h3>制作移動(dòng)位置的動(dòng)畫(huà)</h3>
? ? ? ? <span></span>
? ? ? ? <div id="tip"></div>
? ? ? ??
? ? ? ? <script type="text/javascript">
? ? ? ? ? ? $(function () {
? ? ? ? ? ? ? ? $("sapn").animate({
? ? ? ? ? ? ? ? ? ? left: "+=300px"
? ? ? ? ? ? ? ? }, 3000, function () {
? ? ? ? ? ? ? ? ? ? $("sapn").animate({
? ? ? ? ? ? ? ? ? ? ? ? height: '+=30px',
? ? ? ? ? ? ? ? ? ? ? ? width: '+=30px'
? ? ? ? ? ? ? ? ? ? }, 3000, function () {
? ? ? ? ? ? ? ? ? ? ? ? $("#tip").html("執(zhí)行完成!");
? ? ? ? ? ? ? ? ? ? });
? ? ? ? ? ? ? ? });
? ? ? ? ? ? });
? ? ? ? </script>
? ? </body>
</html>
2016-05-19
選擇器中的標(biāo)簽寫(xiě)錯(cuò)了 ?是span不是sapn