W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
<!DOCTYPE html> <html> <head> <script type="text/javascript" src="/jquery/jquery.js"></script> </head> <body> <p>This is a paragragh.</p> <p>This is a paragragh.</p> <p>This is a paragragh.</p> <p id="selected">This is a paragragh.</p> <p>This is a paragragh.</p> <p>This is a paragragh.</p> <script> $("p").not("#selected").css('background-color', 'red'); </script> </body> </html>