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

JQuery基礎(chǔ)語法練習

原創(chuàng) 2018-12-25 22:18:28 281
摘要:通過對JQuery基礎(chǔ)語法練習,簡單了解了JQuery控制css屬性的用法,并學會了通過$("[id=div1]")的方法,用JQuery同時控制所有ID相同的div。也祝各位老師節(jié)日快樂,christmas!<!DOCTYPE html><html><head> <meta charset=utf-8" /> <

通過對JQuery基礎(chǔ)語法練習,簡單了解了JQuery控制css屬性的用法,并學會了通過$("[id=div1]")的方法,用JQuery同時控制所有ID相同的div。也祝各位老師節(jié)日快樂,christmas!

jquery.jpg


<!DOCTYPE html>

<html>

<head>

<meta charset=utf-8" />

<title>無標題文檔</title>

    <script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.js"></script>

</head>

<body>

<script type="text/javascript">

$(document).ready(function(){

$("div").css("background","white")

$("button").click(function(){

$("[id=div1]").css("background","pink")

})


})


</script>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <br />

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <br />

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <br />

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <br />

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div id="div1" style="width:20px;height:20px;background:red;float:left;"></div>

    <div style="width:20px;height:20px;background:#000;float:left;"></div>

    <br />

    <button>點擊</button>

    

</body>

</html>


批改老師:滅絕師太批改時間:2018-12-26 09:24:09
老師總結(jié):id的唯一性?。∽8J盏搅?,下次不要犯這個低級錯誤啦!布局還是非常用心的

發(fā)布手記

熱門詞條