abstract:<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>jQuery練習(xí)</title> <script type="text/javascript" src="js/jquery-1.8.3.min.j
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>jQuery練習(xí)</title> <script type="text/javascript" src="js/jquery-1.8.3.min.js"></script> <script> // 元素選擇器 $(document).ready(function() { $("button").click(function() { $("p").hide(); }); }); $(document).ready(function(){ $(":enabled").css("background-color","red"); }); </script> </head> <body> <p>我是隱藏的內(nèi)容</p> <button>點(diǎn)我隱藏</button> <!--:first 第一個(gè)元素 :last 最后 一個(gè) :even 所有偶數(shù) :odd 所有奇數(shù) :eq(..)列表中的第幾個(gè)元素 :gt()大于x的元素 :lt()小于x的元素 [attribute] [attribute!=value][attribute$=value] :enabled :disabled :selected :checked --> <form> 姓名: <input type="text" name="user" /><br /> 密碼: <input type="password" name="password" /> </form> </body> </html>
Correcting teacher:韋小寶Correction time:2018-11-15 09:07:47
Teacher's summary:代碼很完整!但是缺少自己的總結(jié)以及代碼的高亮!下次記得帶上啊!繼續(xù)加油吧!!