摘要:<!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&quo
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無標(biāo)題文檔</title>
<script src="js/jquery-3.4.0.min.js" type="text/javascript"></script>
</head>
<body>
<script type="text/javascript">
//放入javascript代碼或者jQuery代碼
//文檔就緒函數(shù)
$(document).ready(function() {
$("#bt1").click(
function(){
$("p").animate({fontSize:'90px'},3000);
}
);
$("#bt2").click(
function(){
$("p").stop();
}
);
});
</script>
<button id="bt1">點(diǎn)擊放大</button>
<button id="bt2">點(diǎn)擊停止</button>
<p>我是字體</p>
</body>
</html>
批改老師:查無此人批改時(shí)間:2019-04-18 13:17:41
老師總結(jié):完成的不錯(cuò)。jq比js簡(jiǎn)單很多,只做網(wǎng)頁(yè)的話,可以用jq代替js。繼續(xù)加油。