Correction status:qualified
Teacher's comments:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js "></script> </head> <body> <!-- attr() removeAttr(); 开始--> <a id="one" href="">1</a> <a id="twoid" href="https://www.baidu.com/">2</a> <script> $('#one').attr('href','https://www.baidu.com/'); $('#twoid').removeAttr('href'); </script> <!--结束--> <!-- css(); width();height(); --> <img src="https://b-ssl.duitang.com/uploads/item/201303/23/20130323161411_5x2GR.jpeg" alt=""> <!-- 结束 --> <script> $('img').css('width',200); $('img').height(400); $('img').css({ 'width':'300' }); </script> </body> </html>
点击 "运行实例" 按钮查看在线实例