第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定

哪位高人指點(diǎn)下我的代碼為何移動無效呢?非常感謝

<!DOCTYPE html>

<html>

? ? <head>

? ? ? ? <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

? ? ? ? <title>jQuery動畫特效</title>

? ? ? ? <script src="http://libs.baidu.com/jquery/1.9.0/jquery.js" type="text/javascript"></script>

? ? </head>

? ??

? ? <body>

? ? ? ?<input id='l' type='button' value='左移'><br>

? ? ? ?<input id='r' type='button' value='右移'>

? ? ? ?<span id='tip'></span>

? ? ? ?<script>

? ? ? ?$(function () {

? ? ? ? ? ? ? ? $("#l").bind('click',function(){

? ? ? ? ? ? ? ? $(this).animate({

? ? ? ? ? ? ? ? ? ? left: "+=100px" ? ? ? ? ? ? ? ? ? ?

? ? ? ? ? ? ? ?},

? ? ? ? ? ? ? ?3000, function () {

? ? ? ? ? ? ? ? ? ?$("#tip").html("執(zhí)行左移完成!");

? ? ? ? ? ? ? ?});

? ? ? ? ? ? ? ? });

? ? ? ? ? ? ? ? $("#r").bind('click',function(){

? ? ? ? ? ? ? ?$(this).animate({

? ? ? ? ? ? ? ? ? ?right: "+=80px" ? ? ? ? ? ? ? ? ? ?

? ? ? ? ? ? ? ?},

? ? ? ? ? ? ? ?3000, function () {

? ? ? ? ? ? ? ? ? ?$("#tip").html("執(zhí)行右移完成!");

? ? ? ? ? ? ? ?});

? ? ? ? ? ? ? ? });

? ? ? ? ? ? });

? ? ? ? </script>

? ? </body>

</html>


正在回答

3 回答

補(bǔ)充一點(diǎn):你做作業(yè),認(rèn)真看下題目要求好嗎,http://idcbgp.cn/code/1104

出于對回答者的認(rèn)同和尊重,解決了你的問題,請采納,謝謝

2 回復(fù) 有任何疑惑可以回復(fù)我~
#1

resharpe 提問者

非常感謝!
2016-06-24 回復(fù) 有任何疑惑可以回復(fù)我~
<!DOCTYPE?html>
<html>
????<head>
????<meta?charset="utf-8">
????????<meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8"?/>
????????<title>jQuery動畫特效</title>
????????<script?src="http://libs.baidu.com/jquery/1.9.0/jquery.js"?type="text/javascript"></script>
????????<style?type="text/css">
????????/*http://idcbgp.cn/code/335?,把這個網(wǎng)站的第一段話讀一遍*/
????????????input{position:?relative;}
????????</style>
????</head>
????
????<body>
???????<input?id='l'?type='button'?value='左移'><br>
???????<input?id='r'?type='button'?value='右移'>
???????<span?id='tip'></span>
???????<script>
???????$(function?()?{
????????????????$("#l").bind('click',function(){
????????????????$(this).animate({
????????????????//以左邊為圓點(diǎn),+是向右移,-是向左移
????????????????????left:?"-=100px"????????????????????
???????????????},
???????????????3000,?function?()?{
???????????????????$("#tip").html("執(zhí)行左移完成!");
???????????????});
????????????????});
????????????????$("#r").bind('click',function(){
???????????????$(this).animate({
??????????????????//以右邊為圓點(diǎn),+是向左移,-是向右移
???????????????????right:?"-=80px"???????????????????
???????????????},
???????????????3000,?function?()?{
???????????????????$("#tip").html("執(zhí)行右移完成!");
???????????????});
????????????????});
????????????});
????????</script>
????</body>
</html>


1 回復(fù) 有任何疑惑可以回復(fù)我~

設(shè)置定位才有效哦

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
jQuery基礎(chǔ)課程
  • 參與學(xué)習(xí)       154725    人
  • 解答問題       7289    個

加入課程學(xué)習(xí),有效提高前端開發(fā)速度

進(jìn)入課程

哪位高人指點(diǎn)下我的代碼為何移動無效呢?非常感謝

我要回答 關(guān)注問題
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號