abstract:<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><script src="../js/jq.js" ></script><style>.but{width: 300px;height:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script src="../js/jq.js" >
</script>
<style>
.but{
width: 300px;
height: 300px;
background-color: aquamarine;
}
</style>
<script>
$(".item").click(function(){
$("but").css("display","none")
})
</script>
<title>Document</title>
</head>
<body>
<div class="but">
~hello~
</div>
<button class="item">點(diǎn)我隱藏</buttom>
<button id="em">點(diǎn)我有驚喜</buttom>
<button class="xyz">點(diǎn)我顯示</buttom>
</body>
</html>
Correcting teacher:韋小寶Correction time:2019-02-23 10:44:03
Teacher's summary:使用jQuery來(lái)控制div的樣式要比js簡(jiǎn)單的多了 代碼也比js要少的多