BootWiki教程网
源代码:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>BootWiki 教程网</title> <script> function addBorder(){ document.getElementById("compman").border="2"; } </script> </head> <body> <img alt="Computerman" height="98" id="compman" src="compman.gif" width="107"> <br><br> <input onclick="addBorder()" type="button" value="加上边框"> </body> </html>
运行结果