-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