Because the file needs to be loaded, it is recommended to refresh the
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <ptml xmlns=" http://www.w3.org/1999/xhtml "> <pead> <meta http-equiv=" Content-type "content=" text/html; Charset=utf-8 "/> <title> highlight picture border </title> <style type=" Text/css "> #mainboard img{border:1px Solid #cccccc; width:88px; height:31px; Cursor:pointer; } </style> <script language= "javascript" type= "Text/javascript" src= "http://img.jb51.net/jslib/jquery/" Jquery-1.3.2.min.js "></script> <script language=" javascript "type=" Text/javascript "> $ (Function () {$ ("#mainboard img"). Bind ("click", Function () {$ (this). CSS ("Border", "1px solid Red"). Siblings (). CSS ("Border", "1px so Lid #cccccc "); ) </script> </pead> <body> <div id= "mainboard" > </div> </body& Gt </ptml>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]