运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("[id=choose]").css("background-color", "yellow"); }); </script> </head> <body> <h1>Welcome to My Homepage</h1> <p class="intro">My name is Donald.</p> <p>I live in Duckburg.</p> <p>My best friend is Mickey.</p> Who is your favourite: <ul id="choose"> <li>Goofy</li> <li>Mickey</li> <li>Pluto</li> </ul> </body> </html>