亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

div控制css樣式

Original 2019-02-23 10:41:34 253
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要少的多

Release Notes

Popular Entries