abstract:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xml
<!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>无标题文档</title> <script src="js/jquery-3.4.0.min.js" type="text/javascript"></script> </head> <body> <script type="text/javascript"> $(document).ready(function() { $(":enabled").css("background","red"); $(":disabled").css("background","blue"); $(":selected").css("color","red"); $(":checked").parent().css("color","blue"); }); </script> <form> 输入框1<input type="text" name =""/><br/> 输入框2<input type="text" name =""/><br/> 输入框3<input type="text" name ="" disabled="disabled"/><br/> 输入框4<input type="text" name =""/><br/> <select > <option>1</option> <option>2</option> <option selected="selected">3</option> <option>4</option> </select> <br /> <label> <input type="checkbox" name = "" />我的 </label> <label> <input type="checkbox" name = "" checked="checked"/>你的 </label> <label> <input type="checkbox" name = "" />他的 </label> </form> </body> </html>
Correcting teacher:查无此人Correction time:2019-04-18 09:59:00
Teacher's summary:完成的不错。jq比js简单很多,多练习。继续加油