-1
這裏是不工作的我的代碼段:「切換()」工作不正常,(縮格關閉屏幕)
//code for div 3
//When clicked the div will double in size and the text within will change and then when clicked again, all will revert back to original
$('#div3').toggle(function(){
$('#div3').animate({height: '300px', width: '300px'});
document.getElementById('change-me').innerHTML="Click me to make me smaller!";
},
function(){
$('#div3').animate({height: '150px', width: '150px'});
document.getElementById('change-me').innerHTML="Click me to mke me bigger!";
});
每當我刷新頁面,看看它是否是工作,這個代碼應用的div也收縮並從頁面右上角逐漸消失...
感謝任何幫助我的人。 :)
感謝您的幫助傢伙!非常感激! :) – JamesTheHunt